System::Collections::Generic::KeyValuePair クラス

KeyValuePair class

キーと値のペア。この型はスタック上に割り当て、値渡しまたは参照渡しで関数に渡すべきです。System::SmartPtr クラスを使用してこの型のオブジェクトを管理しないでください。

template<typename TKey,typename TValue>class KeyValuePair

メソッド

メソッド説明
get_Key() constキーを取得します。
get_Value() const値を取得します。
GetHashCode() constキーと値のハッシュを XOR してキー・バリューペアのハッシュを計算します。
IsNull() const常に false を返します。
KeyValuePair()null キー・バリューペアの初期化子。
KeyValuePair(const TKey&, const TValue&)コンストラクタ。
KeyValuePair(const std::pair<OtherK, OtherV>&)型変換コンストラクタ。
operator<(const KeyValuePair&) constIComparer<KeyValuePair<TKey, TValue» を継承したクラス用のパッチで、何も比較しません。
ToString() constキー・バリューペアを文字列に変換します。

参照