Mono Class Library: System.Type Overview | Members

System.Type.Attributes Property

Gets the attributes associated with the type represented by the current instance.

public System.Reflection.TypeAttributes Attributes { get; }

Value

A System.Reflection.TypeAttributes object representing the attribute set of the Type.

Remarks

This property is read-only.

If the current instance represents a generic type, this property returns the attributes of the generic type definition.

If the current instance represents a generic type parameter T, the stem.Reflection.TypeAttributes returned by this property includes stem.Reflection.TypeAttributes.Abstract, stem.Reflection.TypeAttributes.AnsiClass, stem.Reflection.TypeAttributes.AutoLayout, stem.Reflection.TypeAttributes.Class, stem.Reflection.TypeAttributes.Public, and stem.Reflection.TypeAttributes.Sealed. These are arbitrary choices which have no meaning in the context of a type parameter.

Requirements

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