Type.EmptyTypes Field

May 11, 2014

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

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

public static readonly Type[] EmptyTypes

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);


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft