Κλάση 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Αποσυσκευάζει τη συσκευασμένη τιμή.

Δείτε επίσης