About 53,700 results
Open links in new tab
  1. Dictionary<TKey,TValue> Class (System.Collections.Generic)

    The Dictionary<TKey,TValue> generic class provides a mapping from a set of keys to a set of values. Each addition to the dictionary consists of a value and its associated key.

  2. What is TKey and TValue in a generic dictionary?

    Jul 8, 2009 · The pattern that I often see is that when you have only one generic type, it is called "T", but when you have more than one, they have explicit names (like TKey and TValue) to …

  3. Understanding the Dictionary<TKey, TValue> Class at a Glance

    Dec 18, 2024 · The Dictionary<TKey, TValue> class in C# is a collection designed for storing key-value pairs, where each unique key maps to a specific value. It is highly optimized for fast …

  4. TKEY record - Wikipedia

    TKEY (transaction key) is a record type of the Domain Name System (DNS). TKEY resource records (RRs) can be used in a number of different modes to establish shared keys between a …

  5. C# Dictionary<TKey, TValue>

    The type of each element is the struct KeyValuePair<TKey,TValue> which contains two properties: Key and Value. To access all the keys of a dictionary, you use the Keys property.

  6. TKEY Lookup

    Find transaction keys (TKEY DNS records) for any domain or website. Check if the TKEY records have been configured correctly.

  7. Dictionary<TKey,TValue>.Item [TKey] Property (System ...

    When you set the property value, if the key is in the Dictionary<TKey,TValue>, the value associated with that key is replaced by the assigned value. If the key is not in the …

  8. Dictionary<TKey,TValue>.Add(TKey, TValue) Method (System ...

    The following code example creates an empty Dictionary<TKey,TValue> of strings with string keys and uses the Add method to add some elements. The example demonstrates that the …

  9. Dictionary<TKey,TValue>.ContainsKey(TKey) Method (System ...

    Finally, it shows the least efficient way to test whether keys exist, by using the Item [] property (the indexer in C#). This code example is part of a larger example provided for the …

  10. CA1864: Prefer the 'IDictionary.TryAdd (TKey, TValue)' method

    Nov 12, 2024 · It's more efficient to call Dictionary<TKey,TValue>.TryAdd, which returns a Boolean value that indicates if the value was added or not. TryAdd doesn't overwrite the key's …