TEnum Class

Provides static methods to manipulate an enumeration type.

Namespace: Spring.SystemUtils
TObject
  Spring.SystemUtils.TEnum
type
 TEnum = class
 end;

The TEnum type exposes the following members.

Show:
 NameDescription
ConvertToInteger<T>(T)

Represents method ConvertToInteger<T>(T).

GetEnumTypeData<T>

Represents method GetEnumTypeData<T>.

GetEnumTypeInfo<T>

Represents method GetEnumTypeInfo<T>.

GetName<T>(Integer)

Overloaded. Represents method GetName<T>(Integer).

GetName<T>(T)

Overloaded. Represents method GetName<T>(T).

GetNames<T>

Represents method GetNames<T>.

GetValue<T>(string)

Overloaded. Represents method GetValue<T>(string).

GetValue<T>(T)

Overloaded. Represents method GetValue<T>(T).

GetValues<T>

Represents method GetValues<T>.

GetValueStrings<T>

Represents method GetValueStrings<T>.

IsValid<T>(Integer)

Overloaded. Represents method IsValid<T>(Integer).

IsValid<T>(T)

Overloaded. Represents method IsValid<T>(T).

Parse<T>(Integer)

Overloaded. Represents method Parse<T>(Integer).

Parse<T>(string)

Overloaded. Represents method Parse<T>(string).

TryParse<T>(Integer,T)

Overloaded. Represents method TryParse<T>(Integer,T).

TryParse<T>(string,T)

Overloaded. Represents method TryParse<T>(string,T).

Top

This does only work for non enum types that have type info. Discontiguous enumerations and enumerations which don't start at zero don't have typeinfo. See: http://stackoverflow.com/questions/1420562/why-do-i-get-type-has-no-typeinfo-error-with-an-enum-type