Emits IL to unbox a value type and if null, create a new instance of the value type.

Namespace:  NHibernate.Bytecode
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Shared Sub PreparePropertyForSet ( _
	il As ILGenerator, _
	propertyType As Type _
)
C#
public static void PreparePropertyForSet(
	ILGenerator il,
	Type propertyType
)
Visual C++
public:
static void PreparePropertyForSet(
	ILGenerator^ il, 
	Type^ propertyType
)
JavaScript
NHibernate.Bytecode.EmitUtil.preparePropertyForSet = function(il, propertyType);

Parameters

il
Type: System.Reflection.Emit..::.ILGenerator
propertyType
Type: System..::.Type

Remarks

This does not work if the value type doesn't have a default constructor - we delegate that to the ISetter.

See Also