EnumValues

EnumValues class

Provides meta information about enumeration constants of enum type E.

template<typename E,class Guard>class EnumValues : public System::EnumValuesBase

Template parameters

ParameterDescription
EThe type of enumeration

Methods

MethodDescription
EnumValues()Constructs an instance.
SharedPtr<Object> GetValueOf(const String&, bool) const overrideReturns boxed value of the enum constant with the specified name.
ArrayPtr<int64_t> GetValues() const overrideReturns an array containing all values of enumeration E.
static ArrayPtr<int64_t> GetValues(const TypeInfo&)Returns an array containing all values of the specified enumeration type.
static SharedPtr<Object> Parse(const TypeInfo&, const String&, bool)Returns an object that represents a value of enumeration constant of the specified enumeration type with the specified name.
virtual ~EnumValues()Destructor.

See Also