kelas 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

Metode

MetodeDeskripsi
DefaultBoxedValue(const T&)Membuat instance baru dari kelas DefaultBoxedValue yang merepresentasikan nilai yang ditentukan.
Equals(ptr) overrideMenentukan kesetaraan nilai yang dibungkus yang diwakili oleh objek saat ini dan objek yang ditentukan.
GetHashCode() const overrideMengembalikan kode hash untuk objek saat ini.
GetType() const overrideMendapatkan tipe sebenarnya dari objek.
is() constMenentukan apakah tipe nilai yang dibungkus yang diwakili oleh objek saat ini adalah V.
ToString() const overrideMengembalikan representasi string dari nilai yang dibungkus.
unbox() constMelepaskan nilai yang dibungkus.

Lihat Juga