[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: ToolsAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public static bool CanAutomaticallyCreateInstance(
this Type Type
) |
| F# |
|---|
static member CanAutomaticallyCreateInstance :
Type:Type -> bool
|
| JScript |
|---|
public static function CanAutomaticallyCreateInstance(
Type : Type
) : boolean |
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
See Also