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: (
public static InstanceFactory CreateFactory(
	this ConstructorInfo 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).
The method uses an expression tree to build a delegate for the specified constructor
See Also