Mono Class Library: System.Type Overview | Members

System.Type.EmptyTypes Field

Returns an empty array of type Type .

public static readonly Type[] EmptyTypes

Remarks

This field is read-only.

The empty Type array returned by this field is used to specify that lookup methods in the Type class, such as Type.GetMethod(string, System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, Type[], System.Reflection.ParameterModifier[]) and Type.GetConstructor(System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, Type[], System.Reflection.ParameterModifier[]), search for members that do not take parameters.

Note: For example, to locate the public instance constructor that takes no parameters, invoke Type.GetConstructor(System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, Type[], System.Reflection.ParameterModifier[]) (System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance, null, Type.EmptyTypes, null).

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0