1 instantiation of OrderedDictionary
System.Text.Json (1)
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
256
return
new
(capacity, comparer);
75 references to OrderedDictionary
System.Collections (60)
System\Collections\Generic\OrderedDictionary.cs (60)
62
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that is empty,
70
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that is empty,
73
/// <param name="capacity">The initial number of elements that the <see cref="
OrderedDictionary
{TKey, TValue}"/> can contain.</param>
80
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that is empty,
92
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that is empty,
95
/// <param name="capacity">The initial number of elements that the <see cref="
OrderedDictionary
{TKey, TValue}"/> can contain.</param>
141
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that contains elements copied from
145
/// The <see cref="IDictionary{TKey, TValue}"/> whose elements are copied to the new <see cref="
OrderedDictionary
{TKey, TValue}"/>.
154
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that contains elements copied from
158
/// The <see cref="IDictionary{TKey, TValue}"/> whose elements are copied to the new <see cref="
OrderedDictionary
{TKey, TValue}"/>.
175
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that contains elements copied
179
/// The <see cref="IEnumerable{T}"/> whose elements are copied to the new <see cref="
OrderedDictionary
{TKey, TValue}"/>.
188
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that contains elements copied
192
/// The <see cref="IEnumerable{T}"/> whose elements are copied to the new <see cref="
OrderedDictionary
{TKey, TValue}"/>.
242
/// <summary>Gets the number of key/value pairs contained in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
260
/// <summary>Gets a collection containing the keys in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
272
/// <summary>Gets a collection containing the values in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
484
/// <exception cref="ArgumentException">An element with the same key already exists in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</exception>
533
/// <summary>Removes all keys and values from the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
547
/// <summary>Determines whether the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains the specified key.</summary>
548
/// <param name="key">The key to locate in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</param>
549
/// <returns><see langword="true"/> if the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains an element with the specified key; otherwise, <see langword="false"/>.</returns>
553
/// <summary>Determines whether the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains a specific value.</summary>
554
/// <param name="value">The value to locate in the <see cref="
OrderedDictionary
{TKey, TValue}"/>. The value can be null for reference types.</param>
555
/// <returns><see langword="true"/> if the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains an element with the specified value; otherwise, <see langword="false"/>.</returns>
608
/// <summary>Determines the index of a specific key in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
722
/// <exception cref="ArgumentException">An element with the same key already exists in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</exception>
736
/// <summary>Removes the value with the specified key from the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
742
/// <summary>Removes the value with the specified key from the <see cref="
OrderedDictionary
{TKey, TValue}"/> and copies the element to the value parameter.</summary>
920
/// <returns><see langword="true"/> if the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains an element with the specified key; otherwise, <see langword="false"/>.</returns>
931
/// <returns><see langword="true"/> if the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains an element with the specified key; otherwise, <see langword="false"/>.</returns>
1160
/// <summary>Returns an enumerator that iterates through the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1161
/// <returns>A <see cref="
OrderedDictionary
{TKey, TValue}.Enumerator"/> structure for the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</returns>
1393
/// <summary>Enumerates the elements of a <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1398
private readonly
OrderedDictionary
<TKey, TValue> _dictionary;
1407
internal Enumerator(
OrderedDictionary
<TKey, TValue> dictionary, bool useDictionaryEntry)
1434
OrderedDictionary
<TKey, TValue> dictionary = _dictionary;
1470
/// <summary>Represents the collection of keys in a <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1476
private readonly
OrderedDictionary
<TKey, TValue> _dictionary;
1479
internal KeyCollection(
OrderedDictionary
<TKey, TValue> dictionary) => _dictionary = dictionary;
1511
OrderedDictionary
<TKey, TValue> dictionary = _dictionary;
1591
/// <summary>Returns an enumerator that iterates through the <see cref="
OrderedDictionary
{TKey, TValue}.KeyCollection"/>.</summary>
1592
/// <returns>A <see cref="
OrderedDictionary
{TKey, TValue}.KeyCollection.Enumerator"/> for the <see cref="
OrderedDictionary
{TKey, TValue}.KeyCollection"/>.</returns>
1639
/// <summary>Enumerates the elements of a <see cref="
OrderedDictionary
{TKey, TValue}.KeyCollection"/>.</summary>
1643
private
OrderedDictionary
<TKey, TValue>.Enumerator _enumerator;
1646
internal Enumerator(
OrderedDictionary
<TKey, TValue> dictionary) => _enumerator = dictionary.GetEnumerator();
1665
/// <summary>Represents the collection of values in a <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1671
private readonly
OrderedDictionary
<TKey, TValue> _dictionary;
1674
internal ValueCollection(
OrderedDictionary
<TKey, TValue> dictionary) => _dictionary = dictionary;
1700
OrderedDictionary
<TKey, TValue> dictionary = _dictionary;
1716
/// <summary>Returns an enumerator that iterates through the <see cref="
OrderedDictionary
{TKey, TValue}.ValueCollection"/>.</summary>
1717
/// <returns>A <see cref="
OrderedDictionary
{TKey, TValue}.ValueCollection.Enumerator"/> for the <see cref="
OrderedDictionary
{TKey, TValue}.ValueCollection"/>.</returns>
1883
/// <summary>Enumerates the elements of a <see cref="
OrderedDictionary
{TKey, TValue}.ValueCollection"/>.</summary>
1887
private
OrderedDictionary
<TKey, TValue>.Enumerator _enumerator;
1890
internal Enumerator(
OrderedDictionary
<TKey, TValue> dictionary) => _enumerator = dictionary.GetEnumerator();
1910
/// <summary>Used to control behavior of insertion into a <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1911
/// <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)
39
OrderedDictionary
<string, JsonNode?> dictionary = CreateDictionary(options, capacity);
78
private
OrderedDictionary
<string, JsonNode?> Dictionary => _dictionary ?? InitializeDictionary();
85
GetUnderlyingRepresentation(out
OrderedDictionary
<string, JsonNode?>? dictionary, out JsonElement? jsonElement);
139
GetUnderlyingRepresentation(out
OrderedDictionary
<string, JsonNode?>? dictionary, out JsonElement? jsonElement);
180
OrderedDictionary
<string, JsonNode?> currentDict = Dictionary;
181
OrderedDictionary
<string, JsonNode?> otherDict = jsonObject.Dictionary;
247
OrderedDictionary
<string, JsonNode?> dict = Dictionary;
System\Text\Json\Nodes\JsonObject.IDictionary.cs (6)
13
private
OrderedDictionary
<string, JsonNode?>? _dictionary;
56
OrderedDictionary
<string, JsonNode?>? dictionary = _dictionary;
219
private
OrderedDictionary
<string, JsonNode?> InitializeDictionary()
221
GetUnderlyingRepresentation(out
OrderedDictionary
<string, JsonNode?>? dictionary, out JsonElement? jsonElement);
250
private static
OrderedDictionary
<string, JsonNode?> CreateDictionary(JsonNodeOptions? options, int capacity = 0)
263
private void GetUnderlyingRepresentation(out
OrderedDictionary
<string, JsonNode?>? dictionary, out JsonElement? jsonElement)
System\Text\Json\Nodes\JsonObject.IList.cs (2)
31
OrderedDictionary
<string, JsonNode?> dictionary = Dictionary;
45
OrderedDictionary
<string, JsonNode?> dictionary = Dictionary;