Emits IL to unbox a value type and if null, create a new instance of the value type.
Namespace: NHibernate.BytecodeAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public static void PreparePropertyForSet( ILGenerator il, Type propertyType ) |
Visual Basic |
---|
Public Shared Sub PreparePropertyForSet ( _ il As ILGenerator, _ propertyType As Type _ ) |
Visual C++ |
---|
public: static void PreparePropertyForSet( ILGenerator^ il, Type^ propertyType ) |
Parameters
- il
- Type: System.Reflection.Emit..::..ILGenerator
[Missing <param name="il"/> documentation for "M:NHibernate.Bytecode.EmitUtil.PreparePropertyForSet(System.Reflection.Emit.ILGenerator,System.Type)"]
- propertyType
- Type: System..::..Type
[Missing <param name="propertyType"/> documentation for "M:NHibernate.Bytecode.EmitUtil.PreparePropertyForSet(System.Reflection.Emit.ILGenerator,System.Type)"]
Remarks
This does not work if the value type doesn't have a default constructor - we delegate
that to the ISetter.