System.Enum Members
This page lists and describes the members of the System.Enum
class in the .NET Framework.
Public Methods
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Determines whether the specified object is equal to the current instance.
Returns the hash code for this instance.
Returns the name of the named numeric value of an enumeration constant.
Returns an array of the names of the members of a specified enumeration type.
Returns the TypeCode for the current instance.
Returns the underlying integral value of the specified enumeration constant.
Returns an array of the values of the members of a specified enumeration type.
Determines whether a specified value is defined for a specified enumeration type.
Converts the specified string representation of a name or numeric value to an enumeration object.
public static object Parse(Type enumType, string value, bool ignoreCase);
Converts the value of this instance to its equivalent string representation.
public static string ToString(Type enumType, object value);
Attempts to get the name of the enumerated constant with the specified value.
Attempts to get the enumerated constant with the specified name.
public static bool TryGetValue(Type enumType, string name, bool ignoreCase, out object value);