TInstance
The type of the instance.
Platform Core .NET Assemblies API
GetInstanceFactory<TInstance>(Type) Method
See Also  Send Feedback
Terrasoft.Common Namespace > ReflectionUtilities Class : GetInstanceFactory<TInstance>(Type) Method
instanceType
Type of the instance.

Glossary Item Box

Returns delegate that create instance of specified type using public parameterless constructor.

Syntax

 
C#
 
 

Parameters

instanceType
Type of the instance.

Type Parameters

TInstance
The type of the instance.

Return Value

Delegate that create instance of specified type if type has public parameterless constructor, otherwise null.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.