LinqUtilsCreateObjectCreatorFuncInstanceTObject Method (ConstructorInfo) |
Creates the object creator func instance for instantiating objects of type TObject using the constructor passed in.
Namespace:
SD.LLBLGen.Pro.LinqSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax public static ObjectCreatorFunc<TObject> CreateObjectCreatorFuncInstance<TObject>(
ConstructorInfo constructor
)
Public Shared Function CreateObjectCreatorFuncInstance(Of TObject) (
constructor As ConstructorInfo
) As ObjectCreatorFunc(Of TObject)
Parameters
- constructor
- Type: System.ReflectionConstructorInfo
The constructor to use for creating the delegate.
Type Parameters
- TObject
- The type of the object.
Return Value
Type:
ObjectCreatorFuncTObjectan instance of the ObjectCreatorFunc for the TObject type so quickly new TObject instances can be created..
Remarks Thanks to Roger Alsing for the idea: http://rogeralsing.com/
See Also