Click or drag to resize

FastObjectFactory.GetCreateObjectFunction(Type) Method

Gets delegate that creates new instance of the type.

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

Parameters

type  Type
Type of object to create quickly.

Return Value

Func<Object>
Delegate to use to quickly create new objects.
Exceptions
ExceptionCondition
InvalidOperationExceptiontype does not support parameterless public constructor.
See Also