The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

Type.EmptyTypes Field

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

[Visual Basic]
Public Shared ReadOnly EmptyTypes() As Type
public static readonly Type[] EmptyTypes;
public: static Type* EmptyTypes[];
public static var EmptyTypes : Type[];


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)

cInfo = type.GetConstructor (BindingFlags.ExactBinding, null, 
         Type.EmptyTypes, null);

cInfo = type->GetConstructor (BindingFlags::ExactBinding, 0, Type::EmptyTypes, 0);

var cInfo : ConstructorInfo = type.GetConstructor (BindingFlags.ExactBinding, null, 
    Type.EmptyTypes, null);


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

Type Class | Type Members | System Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.