Breyta

Deila með


Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey> Struct

Definition

Provides a type that can be used to perform operations on a Dictionary<TKey,TValue> using a TAlternateKey as a key instead of a TKey.

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

Type Parameters

TKey
TValue
TAlternateKey

The alternate type of a key for performing lookups.

Inheritance
Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey>

Properties

Dictionary

Gets the Dictionary<TKey,TValue> against which this instance performs operations.

Item[TAlternateKey]

Gets or sets the value associated with the specified alternate key.

Methods

ContainsKey(TAlternateKey)

Determines whether the Dictionary<TKey,TValue> contains the specified alternate key.

Remove(TAlternateKey)

Removes the value with the specified alternate key from the Dictionary<TKey,TValue>.

Remove(TAlternateKey, TKey, TValue)

Removes the value with the specified alternate key from the Dictionary<TKey,TValue>, and copies the element to the value parameter.

TryAdd(TAlternateKey, TValue)

Attempts to add the specified key and value to the dictionary.

TryGetValue(TAlternateKey, TKey, TValue)

Gets the value associated with the specified alternate key.

TryGetValue(TAlternateKey, TValue)

Gets the value associated with the specified alternate key.

Applies to