Creates an instance of the specified type.
Namespace:
Mindscape.LightSpeedAssembly: Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
C# |
---|
T CreateInstance<T>( Func<T> defaultCreator ) |
Visual Basic (Declaration) |
---|
Function CreateInstance(Of T) ( _ defaultCreator As Func(Of T) _ ) As T |
Parameters
- defaultCreator
- Type: System..::.Func<(Of <(T>)>)
A function which performs default construction of the specified entity type. Implementations can use this to handle cases that do not require special handling.
Type Parameters
- T
- The type of entity to create.