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