Export (0) Print
Expand All

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

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


Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2014 Microsoft