classe 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

Metodi

MetodoDescrizione
DefaultBoxedValue(const T&)Costruisce una nuova istanza della classe DefaultBoxedValue che rappresenta il valore specificato.
Equals(ptr) overrideDetermina l’uguaglianza dei valori incapsulati rappresentati dall’oggetto corrente e da quello specificato.
GetHashCode() const overrideRestituisce un codice hash per l’oggetto corrente.
GetType() const overrideOttiene il tipo reale dell’oggetto.
is() constDetermina se il tipo del valore incapsulato rappresentato dall’oggetto corrente è V.
ToString() const overrideRestituisce la rappresentazione stringa del valore boxed.
unbox() constEstrae il valore boxed.

Vedi anche