1 instantiation of OrderedDictionary
System.Text.Json (1)
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
284
return
new
(capacity, comparer);
82 references to OrderedDictionary
Microsoft.Diagnostics.DataContractReader.Legacy (1)
EnumMemory\MiniMetadataWriter.cs (1)
19
private readonly
OrderedDictionary
<TargetPointer, string> _names = [];
Microsoft.DotNet.HotReload.Watch (1)
Process\LaunchSettingsProfile.cs (1)
146
public
OrderedDictionary
<string, LaunchSettingsProfile>? Profiles { get; set; }
System.Collections (62)
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>
548
/// <summary>Determines whether the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains the specified key.</summary>
549
/// <param name="key">The key to locate in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</param>
550
/// <returns><see langword="true"/> if the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains an element with the specified key; otherwise, <see langword="false"/>.</returns>
554
/// <summary>Determines whether the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains a specific value.</summary>
555
/// <param name="value">The value to locate in the <see cref="
OrderedDictionary
{TKey, TValue}"/>. The value can be null for reference types.</param>
556
/// <returns><see langword="true"/> if the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains an element with the specified value; otherwise, <see langword="false"/>.</returns>
609
/// <summary>Determines the index of a specific key in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
723
/// <exception cref="ArgumentException">An element with the same key already exists in the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</exception>
737
/// <summary>Removes the value with the specified key from the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
743
/// <summary>Removes the value with the specified key from the <see cref="
OrderedDictionary
{TKey, TValue}"/> and copies the element to the value parameter.</summary>
927
/// <returns><see langword="true"/> if the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains an element with the specified key; otherwise, <see langword="false"/>.</returns>
938
/// <returns><see langword="true"/> if the <see cref="
OrderedDictionary
{TKey, TValue}"/> contains an element with the specified key; otherwise, <see langword="false"/>.</returns>
1167
/// <summary>Returns an enumerator that iterates through the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1168
/// <returns>A <see cref="
OrderedDictionary
{TKey, TValue}.Enumerator"/> structure for the <see cref="
OrderedDictionary
{TKey, TValue}"/>.</returns>
1401
/// <summary>Enumerates the elements of a <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1406
private readonly
OrderedDictionary
<TKey, TValue> _dictionary;
1415
internal Enumerator(
OrderedDictionary
<TKey, TValue> dictionary, bool useDictionaryEntry)
1442
OrderedDictionary
<TKey, TValue> dictionary = _dictionary;
1478
/// <summary>Represents the collection of keys in a <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1484
private readonly
OrderedDictionary
<TKey, TValue> _dictionary;
1487
internal KeyCollection(
OrderedDictionary
<TKey, TValue> dictionary) => _dictionary = dictionary;
1519
OrderedDictionary
<TKey, TValue> dictionary = _dictionary;
1599
/// <summary>Returns an enumerator that iterates through the <see cref="
OrderedDictionary
{TKey, TValue}.KeyCollection"/>.</summary>
1600
/// <returns>A <see cref="
OrderedDictionary
{TKey, TValue}.KeyCollection.Enumerator"/> for the <see cref="
OrderedDictionary
{TKey, TValue}.KeyCollection"/>.</returns>
1647
/// <summary>Enumerates the elements of a <see cref="
OrderedDictionary
{TKey, TValue}.KeyCollection"/>.</summary>
1651
private
OrderedDictionary
<TKey, TValue>.Enumerator _enumerator;
1654
internal Enumerator(
OrderedDictionary
<TKey, TValue> dictionary) => _enumerator = dictionary.GetEnumerator();
1673
/// <summary>Represents the collection of values in a <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1679
private readonly
OrderedDictionary
<TKey, TValue> _dictionary;
1682
internal ValueCollection(
OrderedDictionary
<TKey, TValue> dictionary) => _dictionary = dictionary;
1708
OrderedDictionary
<TKey, TValue> dictionary = _dictionary;
1724
/// <summary>Returns an enumerator that iterates through the <see cref="
OrderedDictionary
{TKey, TValue}.ValueCollection"/>.</summary>
1725
/// <returns>A <see cref="
OrderedDictionary
{TKey, TValue}.ValueCollection.Enumerator"/> for the <see cref="
OrderedDictionary
{TKey, TValue}.ValueCollection"/>.</returns>
1891
/// <summary>Enumerates the elements of a <see cref="
OrderedDictionary
{TKey, TValue}.ValueCollection"/>.</summary>
1895
private
OrderedDictionary
<TKey, TValue>.Enumerator _enumerator;
1898
internal Enumerator(
OrderedDictionary
<TKey, TValue> dictionary) => _enumerator = dictionary.GetEnumerator();
1918
/// <summary>Used to control behavior of insertion into a <see cref="
OrderedDictionary
{TKey, TValue}"/>.</summary>
1919
/// <remarks>Not nested in <see cref="
OrderedDictionary
{TKey, TValue}"/> to avoid multiple generic instantiations.</remarks>
System\Collections\Generic\OrderedDictionaryDebugView.cs (2)
10
private readonly
OrderedDictionary
<TKey, TValue> _dictionary;
12
public OrderedDictionaryDebugView(
OrderedDictionary
<TKey, TValue> dictionary)
System.Text.Json (18)
System\Text\Json\Nodes\JsonObject.cs (8)
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);
153
GetUnderlyingRepresentation(out
OrderedDictionary
<string, JsonNode?>? dictionary, out JsonElement? jsonElement);
175
GetUnderlyingRepresentation(out
OrderedDictionary
<string, JsonNode?>? dictionary, out JsonElement? jsonElement);
215
OrderedDictionary
<string, JsonNode?> currentDict = Dictionary;
216
OrderedDictionary
<string, JsonNode?> otherDict = jsonObject.Dictionary;
276
OrderedDictionary
<string, JsonNode?> dict = Dictionary;
System\Text\Json\Nodes\JsonObject.IDictionary.cs (8)
13
private
OrderedDictionary
<string, JsonNode?>? _dictionary;
86
OrderedDictionary
<string, JsonNode?>? dictionary = _dictionary;
240
private
OrderedDictionary
<string, JsonNode?> InitializeDictionary()
242
GetUnderlyingRepresentation(out
OrderedDictionary
<string, JsonNode?>? dictionary, out JsonElement? jsonElement);
246
OrderedDictionary
<string, JsonNode?> newDictionary = CreateDictionary(Options);
260
OrderedDictionary
<string, JsonNode?>? exchangedDictionary = Interlocked.CompareExchange(ref _dictionary, newDictionary, null);
278
private static
OrderedDictionary
<string, JsonNode?> CreateDictionary(JsonNodeOptions? options, int capacity = 0)
291
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;