This documentation is archived and is not being maintained.

Type.EmptyTypes Field

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

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

public static readonly Type[] EmptyTypes
public static final Type[] EmptyTypes
public static final var EmptyTypes : Type[]
Not applicable.

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, null, 
         Type.EmptyTypes, null);

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.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0