Type.EmptyTypes Field
.NET Framework 3.0
Represents an empty array of type Type. This field is read-only.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly: mscorlib (in mscorlib.dll)
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 );
ConstructorInfo cInfo;
cInfo = type.GetConstructor(BindingFlags.ExactBinding, null,
Type.EmptyTypes, null);
var cInfo : ConstructorInfo = type.GetConstructor (BindingFlags.ExactBinding, null, Type.EmptyTypes, null);
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: