Click or drag to resize

DynamicMethodCompiler Class

Small class which generates and compiles a setter delegate on the fly to quickly set properties on instances through reflection.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ORMSupportClasses.MiscellaneousDynamicMethodCompiler

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses.Miscellaneous
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax
public static class DynamicMethodCompiler
Methods
  NameDescription
Public methodStatic memberCreateSetHandlerTDelegate(Type, FieldInfo)
Creates the set handler for the type and the fieldinfo specified. It compiles an expression tree to create a dynamic setter.
Public methodStatic memberCreateSetHandlerTRootTarget, TRootValue(Type, PropertyInfo)
Creates the set handler for the type and the property specified. It compiles an expression tree to create a dynamic setter. It's wise to cache the returning delegate.
Top
See Also