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बॉक्स्ड वैल्यू को अनबॉक्स करता है।

संबंधित देखें