Click or drag to resize
ConstructorExtensionsCreateFactory Method
Creates a delegate which allocates a new object faster than CreateInstanceT.

Namespace: Griffin
Assembly: Griffin.Core (in Griffin.Core.dll) Version: 1.0.39.0 (1.0.39.0)
Syntax
public static InstanceFactory CreateFactory(
	this ConstructorInfo ctor
)

Parameters

ctor
Type: System.ReflectionConstructorInfo
The ctor.

Return Value

Type: InstanceFactory
The activator

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ConstructorInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
The method uses an expression tree to build a delegate for the specified constructor
See Also