C# Class System.Enum

Inheritance: IComparable
Show file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
CompareTo ( Object target ) : int
GetHashCode ( ) : int
GetTypeCode ( ) : TypeCode
ToString ( ) : String
ToString ( String format ) : String

Private Methods

Method Description
BinarySearch ( ulong array, ulong value ) : int
Equals ( Object obj ) : bool
Format ( Type enumType, Object value, String format ) : String
GetHashEntry ( Type enumType ) : HashEntry
GetName ( Type enumType, Object value ) : String
GetNames ( Type enumType ) : String[]
GetUnderlyingType ( Type enumType ) : Type
GetValue ( ) : Object
GetValueField ( Type type ) : FieldInfo
GetValues ( Type enumType ) : Array
IConvertible ( IFormatProvider provider ) : System.DateTime
IConvertible ( IFormatProvider provider ) : Decimal
IConvertible ( Type type, IFormatProvider provider ) : Object
IConvertible ( IFormatProvider provider ) : bool
IConvertible ( IFormatProvider provider ) : byte
IConvertible ( IFormatProvider provider ) : char
IConvertible ( IFormatProvider provider ) : double
IConvertible ( IFormatProvider provider ) : float
IConvertible ( IFormatProvider provider ) : int
IConvertible ( IFormatProvider provider ) : long
IConvertible ( IFormatProvider provider ) : sbyte
IConvertible ( IFormatProvider provider ) : short
IConvertible ( IFormatProvider provider ) : uint
IConvertible ( IFormatProvider provider ) : ulong
IConvertible ( IFormatProvider provider ) : ushort
InternalBoxEnum ( Type enumType, long value ) : Object
InternalCompareTo ( Object o1, Object o2 ) : int
InternalFlagsFormat ( Type eT, Object value ) : String
InternalFormat ( Type eT, Object value ) : String
InternalFormattedHexString ( Object value ) : String
InternalGetEnumValues ( Type enumType, ulong &values, String &names ) : void
InternalGetUnderlyingType ( Type enumType ) : Type
InternalGetValue ( ) : Object
InternalGetValueAsString ( Type enumType, Object value ) : String
IsDefined ( Type enumType, Object value ) : bool
Parse ( Type enumType, String value ) : Object
Parse ( Type enumType, String value, bool ignoreCase ) : Object
ToHexString ( ) : String
ToObject ( Type enumType, Object value ) : Object
ToObject ( Type enumType, byte value ) : Object
ToObject ( Type enumType, int value ) : Object
ToObject ( Type enumType, long value ) : Object
ToObject ( Type enumType, sbyte value ) : Object
ToObject ( Type enumType, short value ) : Object
ToObject ( Type enumType, uint value ) : Object
ToObject ( Type enumType, ulong value ) : Object
ToObject ( Type enumType, ushort value ) : Object
ToString ( IFormatProvider provider ) : String
ToString ( String format, IFormatProvider provider ) : String
ToUInt64 ( Object value ) : ulong

Method Details

CompareTo() public method

public CompareTo ( Object target ) : int
target Object
return int

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetTypeCode() public method

public GetTypeCode ( ) : TypeCode
return TypeCode

ToString() public method

public ToString ( ) : String
return String

ToString() public method

public ToString ( String format ) : String
format String
return String