Mast/Common/DynamicCalls.cs
/// <summary>Boxes a type if needed.</summary>
/// <param name="ilGenerator">The MSIL generator.</param>
/// <param name="type">The type.</param>
Boxes a type if needed.
Boxes a type if needed .
private static void EmitBoxIfNeeded(ILGenerator ilGenerator, System.Type type)
        {
            if (type.IsValueType)
            {
                ilGenerator.Emit(OpCodes.Box, type);
            }
        }
private static void EmitBoxIfNeeded ( ILGenerator ilGenerator , System . Type type ) { if ( type . IsValueType ) { ilGenerator . Emit ( OpCodes . Box , type ) ; } }
Boxes a type if needed.
Boxes a type if needed .
ilGenerator
ILGenerator
The MSIL generator.
The MSIL generator .
type
System.Type
None