System::DefaultBoxedValue sınıfı

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

Yöntemler

YöntemAçıklama
DefaultBoxedValue(const T&)Belirtilen değeri temsil eden DefaultBoxedValue sınıfının yeni bir örneğini oluşturur.
Equals(ptr) overrideGeçerli ve belirtilen nesneler tarafından temsil edilen kutulanmış değerlerin eşitliğini belirler.
GetHashCode() const overrideMevcut nesne için bir karma kodu döndürür.
GetType() const overrideNesnenin gerçek türünü alır.
is() constGeçerli nesne tarafından temsil edilen kutulanmış değerin türünün V olup olmadığını belirler.
ToString() const overrideKutulanmış değerin dize temsilini döndürür.
unbox() constKutulanmış değerin kutusunu açar.

Ayrıca Bakınız