ערוך

שתף באמצעות


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

Definition

Provides a type that may be used to perform operations on a ConcurrentDictionary<TKey,TValue>

using a TAlternateKey as a key instead of a TKey.

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

Type Parameters

TKey

The type of the keys in the dictionary.

TValue

The type of the values in the dictionary.

TAlternateKey

The alternate type of a key for performing lookups.

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

Properties

Dictionary

Gets the ConcurrentDictionary<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 ConcurrentDictionary<TKey,TValue> contains the specified alternate key.

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.

TryRemove(TAlternateKey, TKey, TValue)

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

and copies the associated key and element to the value parameter.

TryRemove(TAlternateKey, TValue)

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

and copies the element to the value parameter.

Applies to