Type.EmptyTypes Field

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

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

Syntax

'Declaration
Public Shared ReadOnly EmptyTypes As Type()
public static readonly Type[] EmptyTypes

Examples

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, _
   Nothing, type.EmptyTypes, Nothing)
cInfo = type.GetConstructor(BindingFlags.ExactBinding, null,
         Type.EmptyTypes, null);

Version Information

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

Platforms

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

See Also

Reference