3#ifndef _aspose_system_boxed_enum_h_
4#define _aspose_system_boxed_enum_h_
6#include <system/boxed_value.h>
7#include <system/reflection.h>
8#include <system/details/is_defined.h>
25 template<typename E, typename UT = typename std::underlying_type<E>::type>
57 return MakeEnumString();
61 template<
typename T = E>
62 typename std::enable_if<!Details::IsDefined<EnumMetaInfo<T>>::value,
System::String>::type
63 MakeEnumString()
const
68 template<
typename T = E>
69 typename std::enable_if<Details::IsDefined<EnumMetaInfo<T>>::value,
System::String>::type
70 MakeEnumString()
const
73 const T& enumValue =
static_cast<T
>(underlyingValue);
Represents boxed enumeration value. Objects of this class should only be allocated using System::Make...
Definition: boxed_enum.h:27
System::String ToString() const override
Converts boxed value represented by the current object to string.
Definition: boxed_enum.h:55
uint64_t GetUnsignedLongLongValue() const override
Converts the value of the boxed enumeration constant to 64-bit integer value.
Definition: boxed_enum.h:48
BoxedEnum(E e)
Constructs an instance that represents the specified enumeration value.
Definition: boxed_enum.h:37
bool IsBoxedEnum() override
Determines whether the current object represents a boxed value of enum type.
Definition: boxed_enum.h:41
Represents a boxed value. Objects of this class should only be allocated using System::MakeObject() f...
Definition: boxed_value.h:172
const T & unbox() const
Unboxes the value represented by the current object.
Definition: boxed_value.h:202
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
static String Format(const SharedPtr< IFormatProvider > &fp, const String &format, const Args &... args)
Formats string in C# style.
Definition: string.h:1405
bool IsNullOrEmpty() const
Checks if string is empty or is considered null.
Definition: db_command.h:9
static bool IsEnumMetaInfoDefined(T value)
static System::String EnumGetName(T value)
TypeInfo structure for BoxedValue class.
Definition: type_info.h:367