System::BoxedValueBase class

BoxedValueBase class

A base class that defines an interface and implements some fundamental methods of a descendant class that represents a boxed 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.

class BoxedValueBase : public System::Object

Methods

MethodDescription
virtual GetTypeCode() constReturns the value representing the type of the boxed value represented by the current object.
virtual GetUnsignedLongLongValue()Converts the boxed represented by the current object to 64-bit integer value.
virtual IsBoxedEnum()Determines if current object represents a boxed value of enum type.
static Parse(const TypeInfo&, const String&, bool)Boxes the value of enumeration constant of the specified enumeration with the specified name. A parameter specifies if the case should be ignored when interpreting the string specifying the name of the enumeration constant.
static Parse(const TypeInfo&, const String&)Boxes the value of enumeration constant of the specified enumeration with the specified name.

See Also