|   | FastObjectFactoryGetCreateObjectFunctionT(Type) Method | 
        
        
            Gets delegate of specified return type that creates new instance of the type.
            
        
        Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.257-beta+00aa2366fbb9ec75f636ebc7cfa610e3826a727c
 Syntax
Syntaxpublic static Func<T> GetCreateObjectFunction<T>(
	Type type
)
Public Shared Function GetCreateObjectFunction(Of T) ( 
	type As Type
) As Func(Of T)
public:
generic<typename T>
static Func<T>^ GetCreateObjectFunction(
	Type^ type
)
static member GetCreateObjectFunction : 
        type : Type -> Func<'T> JavaScript does not support generic types or methods.
Parameters
- type  Type
- Type of object to create quickly.
Type Parameters
- T
- Type of returned object function used to create objects quickly.
Return Value
FuncTDelegate to use to quickly create new objects.
 Exceptions
Exceptions| Exception | Condition | 
|---|
| InvalidOperationException | type does not support parameterless public constructor -or- 
            type is not a subclass or interface implementation of function type definition. | 
 Remarks
Remarks
            This function will validate that T is related to type.
            
 See Also
See Also