System::BoxedEnum class

BoxedEnum class

Represents boxed enumeration value. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

template<typename E,typename UT>class BoxedEnum : public System::BoxedValue<typename std::underlying_type<E>::type>
ParameterDescription
EType of the enumeration value
UTThe underlying type of enumeration E

Methods

MethodDescription
BoxedEnum(E)Constructs an instance that represents the specified enumeration value.
GetUnsignedLongLongValue() const overrideConverts the value of the boxed enumeration constant to 64-bit integer value.
IsBoxedEnum() overrideDetermines whether the current object represents a boxed value of enum type.
ToString() const overrideConverts boxed value represented by the current object to string.

See Also