Mono Class Library: Overview

System.Enum: Method Members

The methods of System.Enum are listed below. For a list of all members, see the Enum Members list.

See Also: Inherited members from System.ValueType

Public Methods

CompareTo(object) : int
Returns the sort order of the current instance compared to the specified object.
override
Equals(object) : bool
Determines whether the current instance and the specified object represent the same type and value.
static
Format(Type, object, string) : string
Converts the specified element of the specified enumeration type to its string representation using the specified format.
override
GetHashCode() : int
Generates a hash code for the current instance.
static
GetName(Type, object) : string
Retrieves the name of the constant of the specified enumeration type that has the specified value.
static
GetNames(Type) : string[]
Returns a zero-based, one-dimensional string array that contains the names of the constants of the specified enumeration type.
GetTypeCode() : TypeCode
Documentation for this section has not yet been entered.
static
GetUnderlyingType(Type) : Type
Returns the underlying type of the specified enumeration type.
static
GetValues(Type) : Array
Returns a zero-based, one-dimensional array of the values of the constants of the specified enumeration type.
static
IsDefined(Type, object) : bool
Returns a bool indicating whether a constant with the specified value exists in the specified enumeration type.
static
Parse(Type, string) : object
Converts the specified string representation of one or more enumerated constants of a specified enumeration type to an equivalent enumerated object.
static
Parse(Type, string, bool) : object
Converts the specified string representation of one or more enumerated constants of a specified enumeration type to an equivalent enumerated object. This method behaves in a case-sensitive or insensitive manner according to the specified bool.
static
ToObject(Type, byte) : object
Returns an instance of the specified enumeration type set to the specified byte value.
static
ToObject(Type, short) : object
Returns an instance of the specified enumeration type set to the specified short value.
static
ToObject(Type, int) : object
Returns an instance of the specified enumeration type set to the specified int value.
static
ToObject(Type, long) : object
Returns an instance of the specified enumeration type set to the specified long value.
static
ToObject(Type, object) : object
Returns an instance of the specified enumeration type set to the specified value.
static
ToObject(Type, sbyte) : object
Returns an instance of the specified enumeration type set to the specified sbyte value.
static
ToObject(Type, ushort) : object
Returns an instance of the specified enumeration type set to the specified ushort value.
static
ToObject(Type, uint) : object
Returns an instance of the specified enumeration type set to the specified uint value.
static
ToObject(Type, ulong) : object
Returns an instance of the specified enumeration type set to the specified ulong value.
override
ToString() : string
Converts the name of the value of the current instance to its equivalent string representation.
ToString(IFormatProvider) : string
Converts the name of the value of the current instance to its equivalent string representation.
ToString(string) : string
Converts the value of the current instance to its equivalent string representation using the specified format.
ToString(string, IFormatProvider) : string
Converts the numeric value of the current instance to its equivalent string representation using the specified format.