[This is preliminary documentation and is subject to change.]

Gets value indicating if instance of geven type can be easily created using default CTor

Namespace: Tools
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public static bool CanAutomaticallyCreateInstance(
	this Type Type
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function CanAutomaticallyCreateInstance ( _
	Type As Type _
) As Boolean
Visual C++
[ExtensionAttribute]
public:
static bool CanAutomaticallyCreateInstance(
	Type^ Type
)
F#
static member CanAutomaticallyCreateInstance : 
        Type:Type -> bool 
JScript
public static function CanAutomaticallyCreateInstance(
	Type : Type
) : boolean

Parameters

Type
Type: System..::..Type
Type to check

Return Value

False if type is either interface, abstract or open; true if type has default contructor or is value type

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionType is null

See Also