Class Enum
Provides the base class for enumerations.
Inherited Members
Namespace: System
Assembly: mscorlib.dll
Syntax
public abstract class Enum : ValueType
Methods
HasFlag(Enum)
Determines whether one or more bit fields are set in the current instance.
Declaration
public extern bool HasFlag(Enum flag)
Parameters
Type | Name | Description |
---|---|---|
Enum | flag | An enumeration value. |
Returns
Type | Description |
---|---|
Boolean | true if the bit field or bit fields that are set in flag are also set in the current instance; otherwise, false. |
Exceptions
Type | Condition |
---|---|
ArgumentException |
|
ToString()
Converts the value of this instance to its equivalent string representation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The string representation of the value of this instance. |
Overrides
Remarks
Available only in mscorlib build with support for System.Reflection.