فئة System::DefaultBoxedValue

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

الطرق

طريقةالوصف
DefaultBoxedValue(const T&)ينشئ مثالًا جديدًا من فئة DefaultBoxedValue التي تمثل القيمة المحددة.
Equals(ptr) overrideيحدد مساواة القيم المُغَلَّفة التي تمثلها الكائنات الحالية والمحددة.
GetHashCode() const overrideيعيد رمز تجزئة للكائن الحالي.
GetType() const overrideيحصل على النوع الفعلي للكائن.
is() constيحدد ما إذا كان نوع القيمة المُغَلَّفة التي يمثلها الكائن الحالي هو V.
ToString() const overrideيعيد تمثيل السلسلة للقيمة المعبأة.
unbox() constيفك تعبئة القيمة المعبأة.

انظر أيضًا