Mono Class Library: OverviewSystem.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
CompareTo(object) : int Returns the sort order of the current instance compared to the specified object. overrideEquals(object) : bool Determines whether the current instance and the specified object represent the same type and value. staticFormat(Type, object, string) : string Converts the specified element of the specified enumeration type to its string representation using the specified format. overrideGetHashCode() : int Generates a hash code for the current instance. staticGetName(Type, object) : string Retrieves the name of the constant of the specified enumeration type that has the specified value. staticGetNames(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. staticGetUnderlyingType(Type) : Type Returns the underlying type of the specified enumeration type. staticGetValues(Type) : Array Returns a zero-based, one-dimensional array of the values of the constants of the specified enumeration type. staticIsDefined(Type, object) : bool Returns a bool indicating whether a constant with the specified value exists in the specified enumeration type. staticParse(Type, string) : object Converts the specified string representation of one or more enumerated constants of a specified enumeration type to an equivalent enumerated object. staticParse(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. staticToObject(Type, byte) : object Returns an instance of the specified enumeration type set to the specified byte value. staticToObject(Type, short) : object Returns an instance of the specified enumeration type set to the specified short value. staticToObject(Type, int) : object Returns an instance of the specified enumeration type set to the specified int value. staticToObject(Type, long) : object Returns an instance of the specified enumeration type set to the specified long value. staticToObject(Type, object) : object Returns an instance of the specified enumeration type set to the specified value. staticToObject(Type, sbyte) : object Returns an instance of the specified enumeration type set to the specified sbyte value. staticToObject(Type, ushort) : object Returns an instance of the specified enumeration type set to the specified ushort value. staticToObject(Type, uint) : object Returns an instance of the specified enumeration type set to the specified uint value. staticToObject(Type, ulong) : object Returns an instance of the specified enumeration type set to the specified ulong value. overrideToString() : 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.