FrozenDictionary<TKey,TValue>.AlternateLookup<TAlternateKey> 構造体

定義

FrozenDictionary<TKey,TValue>ではなくキーとしてTAlternateKeyを使用してTKeyに対する操作を実行するために使用できる型を提供します。

public: generic <typename TAlternateKey>
value class FrozenDictionary<TKey, TValue>::AlternateLookup
public readonly struct FrozenDictionary<TKey,TValue>.AlternateLookup<TAlternateKey> where TAlternateKey : allows ref struct
type FrozenDictionary<'Key, 'Value>.AlternateLookup<'AlternateKey> = struct
Public Structure FrozenDictionary(Of TKey, TValue).AlternateLookup(Of TAlternateKey)

型パラメーター

TKey

ディクショナリ内のキーの型。

TValue

ディクショナリ内の値の型。

TAlternateKey

検索を実行するためのキーの代替型。

継承
FrozenDictionary<TKey,TValue>.AlternateLookup<TAlternateKey>

プロパティ

名前 説明
Dictionary

このインスタンスが操作を実行する対象の FrozenDictionary<TKey,TValue> を取得します。

Item[TAlternateKey]

指定した代替キーに関連付けられている値を取得または設定します。

メソッド

名前 説明
ContainsKey(TAlternateKey)

指定した代替キーが FrozenDictionary<TKey,TValue> に含まれているかどうかを判断します。

TryGetValue(TAlternateKey, TValue)

指定した代替キーに関連付けられている値を取得します。

適用対象