Click or drag to resize

FastObjectFactoryGetCreateObjectFunction(Type) Method

Gets delegate that creates new instance of the type.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public static Func<Object> GetCreateObjectFunction(
	Type type
)
View Source

Parameters

type  Type
Type of object to create quickly.

Return Value

FuncObject
Delegate to use to quickly create new objects.
Exceptions
ExceptionCondition
InvalidOperationExceptiontype does not support parameterless public constructor.
See Also