1 instantiation of OrderedDictionary
System.Text.Json (1)
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
284return new(capacity, comparer);
75 references to OrderedDictionary
System.Collections (60)
System\Collections\Generic\OrderedDictionary.cs (60)
56/// Initializes a new instance of the <see cref="OrderedDictionary{TKey, TValue}"/> class that is empty, 64/// Initializes a new instance of the <see cref="OrderedDictionary{TKey, TValue}"/> class that is empty, 67/// <param name="capacity">The initial number of elements that the <see cref="OrderedDictionary{TKey, TValue}"/> can contain.</param> 74/// Initializes a new instance of the <see cref="OrderedDictionary{TKey, TValue}"/> class that is empty, 86/// Initializes a new instance of the <see cref="OrderedDictionary{TKey, TValue}"/> class that is empty, 89/// <param name="capacity">The initial number of elements that the <see cref="OrderedDictionary{TKey, TValue}"/> can contain.</param> 135/// Initializes a new instance of the <see cref="OrderedDictionary{TKey, TValue}"/> class that contains elements copied from 139/// The <see cref="IDictionary{TKey, TValue}"/> whose elements are copied to the new <see cref="OrderedDictionary{TKey, TValue}"/>. 148/// Initializes a new instance of the <see cref="OrderedDictionary{TKey, TValue}"/> class that contains elements copied from 152/// The <see cref="IDictionary{TKey, TValue}"/> whose elements are copied to the new <see cref="OrderedDictionary{TKey, TValue}"/>. 169/// Initializes a new instance of the <see cref="OrderedDictionary{TKey, TValue}"/> class that contains elements copied 173/// The <see cref="IEnumerable{T}"/> whose elements are copied to the new <see cref="OrderedDictionary{TKey, TValue}"/>. 182/// Initializes a new instance of the <see cref="OrderedDictionary{TKey, TValue}"/> class that contains elements copied 186/// The <see cref="IEnumerable{T}"/> whose elements are copied to the new <see cref="OrderedDictionary{TKey, TValue}"/>. 236/// <summary>Gets the number of key/value pairs contained in the <see cref="OrderedDictionary{TKey, TValue}"/>.</summary> 254/// <summary>Gets a collection containing the keys in the <see cref="OrderedDictionary{TKey, TValue}"/>.</summary> 266/// <summary>Gets a collection containing the values in the <see cref="OrderedDictionary{TKey, TValue}"/>.</summary> 478/// <exception cref="ArgumentException">An element with the same key already exists in the <see cref="OrderedDictionary{TKey, TValue}"/>.</exception> 527/// <summary>Removes all keys and values from the <see cref="OrderedDictionary{TKey, TValue}"/>.</summary> 541/// <summary>Determines whether the <see cref="OrderedDictionary{TKey, TValue}"/> contains the specified key.</summary> 542/// <param name="key">The key to locate in the <see cref="OrderedDictionary{TKey, TValue}"/>.</param> 543/// <returns><see langword="true"/> if the <see cref="OrderedDictionary{TKey, TValue}"/> contains an element with the specified key; otherwise, <see langword="false"/>.</returns> 547/// <summary>Determines whether the <see cref="OrderedDictionary{TKey, TValue}"/> contains a specific value.</summary> 548/// <param name="value">The value to locate in the <see cref="OrderedDictionary{TKey, TValue}"/>. The value can be null for reference types.</param> 549/// <returns><see langword="true"/> if the <see cref="OrderedDictionary{TKey, TValue}"/> contains an element with the specified value; otherwise, <see langword="false"/>.</returns> 602/// <summary>Determines the index of a specific key in the <see cref="OrderedDictionary{TKey, TValue}"/>.</summary> 716/// <exception cref="ArgumentException">An element with the same key already exists in the <see cref="OrderedDictionary{TKey, TValue}"/>.</exception> 730/// <summary>Removes the value with the specified key from the <see cref="OrderedDictionary{TKey, TValue}"/>.</summary> 736/// <summary>Removes the value with the specified key from the <see cref="OrderedDictionary{TKey, TValue}"/> and copies the element to the value parameter.</summary> 914/// <returns><see langword="true"/> if the <see cref="OrderedDictionary{TKey, TValue}"/> contains an element with the specified key; otherwise, <see langword="false"/>.</returns> 925/// <returns><see langword="true"/> if the <see cref="OrderedDictionary{TKey, TValue}"/> contains an element with the specified key; otherwise, <see langword="false"/>.</returns> 1154/// <summary>Returns an enumerator that iterates through the <see cref="OrderedDictionary{TKey, TValue}"/>.</summary> 1155/// <returns>A <see cref="OrderedDictionary{TKey, TValue}.Enumerator"/> structure for the <see cref="OrderedDictionary{TKey, TValue}"/>.</returns> 1387/// <summary>Enumerates the elements of a <see cref="OrderedDictionary{TKey, TValue}"/>.</summary> 1392private readonly OrderedDictionary<TKey, TValue> _dictionary; 1401internal Enumerator(OrderedDictionary<TKey, TValue> dictionary, bool useDictionaryEntry) 1428OrderedDictionary<TKey, TValue> dictionary = _dictionary; 1464/// <summary>Represents the collection of keys in a <see cref="OrderedDictionary{TKey, TValue}"/>.</summary> 1470private readonly OrderedDictionary<TKey, TValue> _dictionary; 1473internal KeyCollection(OrderedDictionary<TKey, TValue> dictionary) => _dictionary = dictionary; 1505OrderedDictionary<TKey, TValue> dictionary = _dictionary; 1585/// <summary>Returns an enumerator that iterates through the <see cref="OrderedDictionary{TKey, TValue}.KeyCollection"/>.</summary> 1586/// <returns>A <see cref="OrderedDictionary{TKey, TValue}.KeyCollection.Enumerator"/> for the <see cref="OrderedDictionary{TKey, TValue}.KeyCollection"/>.</returns> 1633/// <summary>Enumerates the elements of a <see cref="OrderedDictionary{TKey, TValue}.KeyCollection"/>.</summary> 1637private OrderedDictionary<TKey, TValue>.Enumerator _enumerator; 1640internal Enumerator(OrderedDictionary<TKey, TValue> dictionary) => _enumerator = dictionary.GetEnumerator(); 1659/// <summary>Represents the collection of values in a <see cref="OrderedDictionary{TKey, TValue}"/>.</summary> 1665private readonly OrderedDictionary<TKey, TValue> _dictionary; 1668internal ValueCollection(OrderedDictionary<TKey, TValue> dictionary) => _dictionary = dictionary; 1694OrderedDictionary<TKey, TValue> dictionary = _dictionary; 1710/// <summary>Returns an enumerator that iterates through the <see cref="OrderedDictionary{TKey, TValue}.ValueCollection"/>.</summary> 1711/// <returns>A <see cref="OrderedDictionary{TKey, TValue}.ValueCollection.Enumerator"/> for the <see cref="OrderedDictionary{TKey, TValue}.ValueCollection"/>.</returns> 1877/// <summary>Enumerates the elements of a <see cref="OrderedDictionary{TKey, TValue}.ValueCollection"/>.</summary> 1881private OrderedDictionary<TKey, TValue>.Enumerator _enumerator; 1884internal Enumerator(OrderedDictionary<TKey, TValue> dictionary) => _enumerator = dictionary.GetEnumerator(); 1904/// <summary>Used to control behavior of insertion into a <see cref="OrderedDictionary{TKey, TValue}"/>.</summary> 1905/// <remarks>Not nested in <see cref="OrderedDictionary{TKey, TValue}"/> to avoid multiple generic instantiations.</remarks>
System.Text.Json (15)
System\Text\Json\Nodes\JsonObject.cs (7)
39OrderedDictionary<string, JsonNode?> dictionary = CreateDictionary(options, capacity); 78private OrderedDictionary<string, JsonNode?> Dictionary => _dictionary ?? InitializeDictionary(); 85GetUnderlyingRepresentation(out OrderedDictionary<string, JsonNode?>? dictionary, out JsonElement? jsonElement); 165GetUnderlyingRepresentation(out OrderedDictionary<string, JsonNode?>? dictionary, out JsonElement? jsonElement); 206OrderedDictionary<string, JsonNode?> currentDict = Dictionary; 207OrderedDictionary<string, JsonNode?> otherDict = jsonObject.Dictionary; 267OrderedDictionary<string, JsonNode?> dict = Dictionary;
System\Text\Json\Nodes\JsonObject.IDictionary.cs (6)
13private OrderedDictionary<string, JsonNode?>? _dictionary; 93OrderedDictionary<string, JsonNode?>? dictionary = _dictionary; 247private OrderedDictionary<string, JsonNode?> InitializeDictionary() 249GetUnderlyingRepresentation(out OrderedDictionary<string, JsonNode?>? dictionary, out JsonElement? jsonElement); 278private static OrderedDictionary<string, JsonNode?> CreateDictionary(JsonNodeOptions? options, int capacity = 0) 291private void GetUnderlyingRepresentation(out OrderedDictionary<string, JsonNode?>? dictionary, out JsonElement? jsonElement)
System\Text\Json\Nodes\JsonObject.IList.cs (2)
28OrderedDictionary<string, JsonNode?> dictionary = Dictionary; 42OrderedDictionary<string, JsonNode?> dictionary = Dictionary;