System.Runtime.CompilerServices.ScopelessEnumAttribute Class

Indicates that a native enumeration is not qualified by the enumeration type name. This class cannot be inherited.

See Also: ScopelessEnumAttribute Members


public sealed class ScopelessEnumAttribute : Attribute


The C++ compiler applies the System.Runtime.CompilerServices.ScopelessEnumAttribute attribute to native enumeration types to indicate that they do not need to be qualified by the enumeration type name when referenced in C++ programs. This attribute distinguishes native enumeration types from managed enumeration types.


Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions:,
Since: .NET 2.0