Gets a bitmask indicating the attributes associated with the Type.
[Visual Basic] Public ReadOnly Property Attributes As TypeAttributes [C#] public TypeAttributes Attributes {get;} [C++] public: __property TypeAttributes get_Attributes(); [JScript] public function get Attributes() : TypeAttributes;
A TypeAttributes object representing the attribute set of the Type.
if (t.Attributes & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Interface) Console.WriteLine ("t is an Interface"); if (t.Attributes & TypeAttributes.ClassSemanticsMask) == TypeAttributes.ValueType) Console.WriteLine ("t is a value type"); if (t.Attributes & & TypeAttributes.Public) != 0) Console.WriteLine ("t is public");
Type Class | Type Members | System Namespace | GetAttributeFlagsImpl | TypeAttributes