Type::EmptyTypes Field

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents an empty array of type Type. This field is read-only.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public:
static initonly array<Type^>^ EmptyTypes

Field Value

Type: array<System::Type^>^

The following code example shows the EmptyTypes field used in one of the GetConstructor methods to get a constructor that takes no parameters.

cInfo = type->GetConstructor( BindingFlags::ExactBinding, nullptr,
   Type::EmptyTypes, nullptr );

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: