System.Type.MemberType Property

Gets a System.Reflection.MemberTypes value indicating that this member is a type or a nested type.

Syntax

public override System.Reflection.MemberTypes MemberType { get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property overrides System.Reflection.MemberInfo.MemberType. Therefore, when you examine a set of System.Reflection.MemberInfo objects—for example, the array returned by erload:System.Type.GetMembers—the System.Reflection.MemberInfo.MemberType property returns System.Reflection.MemberTypes.NestedType when a given member is a nested type.

If the current Type represents a constructed generic type, this property applies to the generic type definition from which the type was constructed. For example, if the current Type represents MyGenericType<int> (MyGenericType(Of Integer) in Visual Basic), the value of this property is determined by MyGenericType<T>.

If the current Type represents a type parameter in the definition of a generic type or generic method, this property always returns System.Reflection.MemberTypes.TypeInfo.

Requirements

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