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ボックス化された値のボックスを解除します。

参照