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

Syntax

[System.AttributeUsage(System.AttributeTargets.Enum)]
public sealed class ScopelessEnumAttribute : Attribute

Remarks

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.

Requirements

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