DynamicMethodCompilerCreateSetHandlerTDelegate Method (Type, FieldInfo) |
Creates the set handler for the type and the fieldinfo specified. It generates IL on the fly to produce a delegate.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses.Miscellaneous
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
Syntax public static Object CreateSetHandler<TDelegate>(
Type type,
FieldInfo fieldInfo
)
Public Shared Function CreateSetHandler(Of TDelegate) (
type As Type,
fieldInfo As FieldInfo
) As Object
Parameters
- type
- Type: SystemType
The type. - fieldInfo
- Type: System.ReflectionFieldInfo
The field info.
Type Parameters
- TDelegate
- The type of the delegate.
Return Value
Type:
Object
compiled delegate which is ready to use to set the field defined by fieldInfo on instances of the type specified
See Also