System::DefaultBoxedValue class

DefaultBoxedValue class

BoxedValue class implementation. Allows it BoxingValue specializations to be declared without duplicating common code. 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<class T>class DefaultBoxedValue : public System::Object

Methods

MethodDescription
DefaultBoxedValue(const T&)Constructs a new instance of DefaultBoxedValue class that represents the specified value.
Equals(ptr) overrideDetermines the equality of the boxed values represented by the current and specified objects.
GetHashCode() const overrideReturns a hash code for the current object.
GetType() const overrideGets actual type of object.
is() constDetermines if the type of the boxed value represented by the current object is V.
ToString() const overrideReturns the string representation of the boxed value.
unbox() constUnboxes the boxed value.

See Also