public void Box(ITypeRef boxedType) { TypeReference type = CecilTypeRef.GetReference(boxedType); if (!type.IsValueType) { return; } _il.Emit(OpCodes.Box, type); }
private static TypeReference GetTypeReference(ITypeRef type) { return(CecilTypeRef.GetReference(type)); }