This documentation is archived and is not being maintained.
Type.EmptyTypes Field
.NET Framework 1.1
Represents an empty array of type Type. This field is read-only.
[Visual Basic] Public Shared ReadOnly EmptyTypes() As Type [C#] public static readonly Type[] EmptyTypes; [C++] public: static Type* EmptyTypes[]; [JScript] public static var EmptyTypes : Type[];
Example
The following code example shows the EmptyTypes field used in one of the GetConstructor methods to get a constructor that takes no parameters.
[Visual Basic] cInfo = type.GetConstructor(BindingFlags.ExactBinding, _ Nothing, Type.EmptyTypes, Nothing) [C#] cInfo = type.GetConstructor (BindingFlags.ExactBinding, null, Type.EmptyTypes, null); [C++] cInfo = type->GetConstructor (BindingFlags::ExactBinding, 0, Type::EmptyTypes, 0); [JScript] var cInfo : ConstructorInfo = type.GetConstructor (BindingFlags.ExactBinding, null, Type.EmptyTypes, null);
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard
See Also
Show: