1 instantiation of OrderedDictionary
System.Text.Json (1)
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
244
return
new
(capacity, comparer);
75 references to OrderedDictionary
System.Collections (60)
System\Collections\Generic\OrderedDictionary.cs (60)
61
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that is empty,
69
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that is empty,
72
/// <param name="capacity">The initial number of elements that the <see cref="
OrderedDictionary
{TKey, TValue}"/> can contain.</param>
79
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that is empty,
91
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that is empty,
94
/// <param name="capacity">The initial number of elements that the <see cref="
OrderedDictionary
{TKey, TValue}"/> can contain.</param>
140
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that contains elements copied from
144
/// The <see cref="IDictionary{TKey, TValue}"/> whose elements are copied to the new <see cref="
OrderedDictionary
{TKey, TValue}"/>.
153
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that contains elements copied from
157
/// The <see cref="IDictionary{TKey, TValue}"/> whose elements are copied to the new <see cref="
OrderedDictionary
{TKey, TValue}"/>.
174
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that contains elements copied
178
/// The <see cref="IEnumerable{T}"/> whose elements are copied to the new <see cref="
OrderedDictionary
{TKey, TValue}"/>.
187
/// Initializes a new instance of the <see cref="
OrderedDictionary
{TKey, TValue}"/> class that contains elements copied
191
/// The <see cref="IEnumerable{T}"/> whose elements are copied to the new <see cref="
OrderedDictionary
{TKey, TValue}"/>.
241
/// <summary>Gets the number of key/value pairs contained in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
259
/// <summary>Gets a collection containing the keys in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
271
/// <summary>Gets a collection containing the values in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
483
/// <exception cref="ArgumentException">An element with the same key already exists in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</exception>
532
/// <summary>Removes all keys and values from the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
546
/// <summary>Determines whether the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains the specified key.</summary>
547
/// <param name="key">The key to locate in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</param>
548
/// <returns><see langword="true"/> if the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains an element with the specified key; otherwise, <see langword="false"/>.</returns>
552
/// <summary>Determines whether the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains a specific value.</summary>
553
/// <param name="value">The value to locate in the <see cref="
OrderedDictionary
{TKey, TValue}"/>. The value can be null for reference types.</param>
554
/// <returns><see langword="true"/> if the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains an element with the specified value; otherwise, <see langword="false"/>.</returns>
607
/// <summary>Determines the index of a specific key in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
721
/// <exception cref="ArgumentException">An element with the same key already exists in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</exception>
735
/// <summary>Removes the value with the specified key from the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
741
/// <summary>Removes the value with the specified key from the <see cref="
OrderedDictionary
{TKey, TValue}"/> and copies the element to the value parameter.</summary>
919
/// <returns><see langword="true"/> if the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains an element with the specified key; otherwise, <see langword="false"/>.</returns>
930
/// <returns><see langword="true"/> if the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains an element with the specified key; otherwise, <see langword="false"/>.</returns>
1159
/// <summary>Returns an enumerator that iterates through the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1160
/// <returns>A <see cref="
OrderedDictionary
{TKey, TValue}.Enumerator"/> structure for the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</returns>
1392
/// <summary>Enumerates the elements of a <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1397
private readonly
OrderedDictionary
<TKey, TValue> _dictionary;
1406
internal Enumerator(
OrderedDictionary
<TKey, TValue> dictionary, bool useDictionaryEntry)
1433
OrderedDictionary
<TKey, TValue> dictionary = _dictionary;
1469
/// <summary>Represents the collection of keys in a <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1475
private readonly
OrderedDictionary
<TKey, TValue> _dictionary;
1478
internal KeyCollection(
OrderedDictionary
<TKey, TValue> dictionary) => _dictionary = dictionary;
1510
OrderedDictionary
<TKey, TValue> dictionary = _dictionary;
1590
/// <summary>Returns an enumerator that iterates through the <see cref="
OrderedDictionary
{TKey, TValue}.KeyCollection"/>.</summary>
1591
/// <returns>A <see cref="
OrderedDictionary
{TKey, TValue}.KeyCollection.Enumerator"/> for the <see cref="
OrderedDictionary
{TKey, TValue}.KeyCollection"/>.</returns>
1638
/// <summary>Enumerates the elements of a <see cref="
OrderedDictionary
{TKey, TValue}.KeyCollection"/>.</summary>
1642
private
OrderedDictionary
<TKey, TValue>.Enumerator _enumerator;
1645
internal Enumerator(
OrderedDictionary
<TKey, TValue> dictionary) => _enumerator = dictionary.GetEnumerator();
1664
/// <summary>Represents the collection of values in a <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1670
private readonly
OrderedDictionary
<TKey, TValue> _dictionary;
1673
internal ValueCollection(
OrderedDictionary
<TKey, TValue> dictionary) => _dictionary = dictionary;
1699
OrderedDictionary
<TKey, TValue> dictionary = _dictionary;
1715
/// <summary>Returns an enumerator that iterates through the <see cref="
OrderedDictionary
{TKey, TValue}.ValueCollection"/>.</summary>
1716
/// <returns>A <see cref="
OrderedDictionary
{TKey, TValue}.ValueCollection.Enumerator"/> for the <see cref="
OrderedDictionary
{TKey, TValue}.ValueCollection"/>.</returns>
1882
/// <summary>Enumerates the elements of a <see cref="
OrderedDictionary
{TKey, TValue}.ValueCollection"/>.</summary>
1886
private
OrderedDictionary
<TKey, TValue>.Enumerator _enumerator;
1889
internal Enumerator(
OrderedDictionary
<TKey, TValue> dictionary) => _enumerator = dictionary.GetEnumerator();
1909
/// <summary>Used to control behavior of insertion into a <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1910
/// <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);
133
GetUnderlyingRepresentation(out
OrderedDictionary
<string, JsonNode?>? dictionary, out JsonElement? jsonElement);
174
OrderedDictionary
<string, JsonNode?> currentDict = Dictionary;
175
OrderedDictionary
<string, JsonNode?> otherDict = jsonObject.Dictionary;
235
OrderedDictionary
<string, JsonNode?> dict = Dictionary;
System\Text\Json\Nodes\JsonObject.IDictionary.cs (6)
13
private
OrderedDictionary
<string, JsonNode?>? _dictionary;
53
OrderedDictionary
<string, JsonNode?>? dictionary = _dictionary;
207
private
OrderedDictionary
<string, JsonNode?> InitializeDictionary()
209
GetUnderlyingRepresentation(out
OrderedDictionary
<string, JsonNode?>? dictionary, out JsonElement? jsonElement);
238
private static
OrderedDictionary
<string, JsonNode?> CreateDictionary(JsonNodeOptions? options, int capacity = 0)
251
private void GetUnderlyingRepresentation(out
OrderedDictionary
<string, JsonNode?>? dictionary, out JsonElement? jsonElement)
System\Text\Json\Nodes\JsonObject.IList.cs (2)
28
OrderedDictionary
<string, JsonNode?> dictionary = Dictionary;
42
OrderedDictionary
<string, JsonNode?> dictionary = Dictionary;