|
| 1 | +#### [Sagara.Core](index.md 'index') |
| 2 | +### [Sagara.Core.Collections](index.md#Sagara.Core.Collections 'Sagara.Core.Collections') |
| 3 | + |
| 4 | +## EmptyDictionary<TKey,TValue> Class |
| 5 | + |
| 6 | +Provides a cached, read-only instance for the specified key and value types. |
| 7 | + |
| 8 | +```csharp |
| 9 | +public sealed class EmptyDictionary<TKey,TValue> : |
| 10 | +System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>, |
| 11 | +System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey, TValue>>, |
| 12 | +System.Collections.IEnumerable, |
| 13 | +System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<TKey, TValue>> |
| 14 | + where TKey : notnull |
| 15 | +``` |
| 16 | +#### Type parameters |
| 17 | + |
| 18 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TKey'></a> |
| 19 | + |
| 20 | +`TKey` |
| 21 | + |
| 22 | +The type of keys in the read-only dictionary. |
| 23 | + |
| 24 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TValue'></a> |
| 25 | + |
| 26 | +`TValue` |
| 27 | + |
| 28 | +The type of values in the read-only dictionary. |
| 29 | + |
| 30 | +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 EmptyDictionary<TKey,TValue> |
| 31 | + |
| 32 | +Implements [System.Collections.Generic.IReadOnlyDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2 'System.Collections.Generic.IReadOnlyDictionary`2')[TKey](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TKey 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2 'System.Collections.Generic.IReadOnlyDictionary`2')[TValue](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TValue 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2 'System.Collections.Generic.IReadOnlyDictionary`2'), [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[System.Collections.Generic.KeyValuePair<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.KeyValuePair-2 'System.Collections.Generic.KeyValuePair`2')[TKey](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TKey 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.KeyValuePair-2 'System.Collections.Generic.KeyValuePair`2')[TValue](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TValue 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.KeyValuePair-2 'System.Collections.Generic.KeyValuePair`2')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), [System.Collections.IEnumerable](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.IEnumerable 'System.Collections.IEnumerable'), [System.Collections.Generic.IReadOnlyCollection<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyCollection-1 'System.Collections.Generic.IReadOnlyCollection`1')[System.Collections.Generic.KeyValuePair<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.KeyValuePair-2 'System.Collections.Generic.KeyValuePair`2')[TKey](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TKey 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.KeyValuePair-2 'System.Collections.Generic.KeyValuePair`2')[TValue](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TValue 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.KeyValuePair-2 'System.Collections.Generic.KeyValuePair`2')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyCollection-1 'System.Collections.Generic.IReadOnlyCollection`1') |
| 33 | + |
| 34 | +### Remarks |
| 35 | + |
| 36 | +We're implementing [System.Collections.Generic.IReadOnlyDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2 'System.Collections.Generic.IReadOnlyDictionary`2') to get a true read-only dictionary without |
| 37 | + risking various extension methods leading to runtime exceptions. For example, [System.Collections.ObjectModel.ReadOnlyDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.ObjectModel.ReadOnlyDictionary-2 'System.Collections.ObjectModel.ReadOnlyDictionary`2') |
| 38 | + implements [System.Collections.Generic.IDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IDictionary-2 'System.Collections.Generic.IDictionary`2'), which in turn lights up the [System.Collections.Generic.CollectionExtensions.TryAdd<>.Collections.Generic.IDictionary{<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.CollectionExtensions.TryAdd--2#System_Collections_Generic_CollectionExtensions_TryAdd__2_System_Collections_Generic_IDictionary{__0,__1},__0,__1_ 'System.Collections.Generic.CollectionExtensions.TryAdd``2(System.Collections.Generic.IDictionary{``0,``1},``0,``1)') |
| 39 | + extension method that will throw at runtime if called on a [System.Collections.ObjectModel.ReadOnlyDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.ObjectModel.ReadOnlyDictionary-2 'System.Collections.ObjectModel.ReadOnlyDictionary`2'). |
| 40 | +### Constructors |
| 41 | + |
| 42 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.EmptyDictionary()'></a> |
| 43 | + |
| 44 | +## EmptyDictionary() Constructor |
| 45 | + |
| 46 | +Don't let callers create their own instances. |
| 47 | + |
| 48 | +```csharp |
| 49 | +private EmptyDictionary(); |
| 50 | +``` |
| 51 | +### Fields |
| 52 | + |
| 53 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.Instance'></a> |
| 54 | + |
| 55 | +## EmptyDictionary<TKey,TValue>.Instance Field |
| 56 | + |
| 57 | +The one and only instance of [EmptyDictionary<TKey,TValue>](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>') for this key/value type pair. |
| 58 | + |
| 59 | +```csharp |
| 60 | +public static readonly IReadOnlyDictionary<TKey,TValue> Instance; |
| 61 | +``` |
| 62 | + |
| 63 | +#### Field Value |
| 64 | +[System.Collections.Generic.IReadOnlyDictionary<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2 'System.Collections.Generic.IReadOnlyDictionary`2')[TKey](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TKey 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2 'System.Collections.Generic.IReadOnlyDictionary`2')[TValue](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TValue 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2 'System.Collections.Generic.IReadOnlyDictionary`2') |
| 65 | +### Properties |
| 66 | + |
| 67 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.Count'></a> |
| 68 | + |
| 69 | +## EmptyDictionary<TKey,TValue>.Count Property |
| 70 | + |
| 71 | +Gets the number of elements in the collection. |
| 72 | + |
| 73 | +```csharp |
| 74 | +public int Count { get; } |
| 75 | +``` |
| 76 | + |
| 77 | +Implements [Count](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyCollection-1.Count 'System.Collections.Generic.IReadOnlyCollection`1.Count') |
| 78 | +
|
| 79 | +#### Property Value |
| 80 | +[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') |
| 81 | +
|
| 82 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.Keys'></a> |
| 83 | + |
| 84 | +## EmptyDictionary<TKey,TValue>.Keys Property |
| 85 | + |
| 86 | +Gets an enumerable collection that contains the keys in the read-only dictionary. |
| 87 | + |
| 88 | +```csharp |
| 89 | +public System.Collections.Generic.IEnumerable<TKey> Keys { get; } |
| 90 | +``` |
| 91 | + |
| 92 | +Implements [Keys](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2.Keys 'System.Collections.Generic.IReadOnlyDictionary`2.Keys') |
| 93 | +
|
| 94 | +#### Property Value |
| 95 | +[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TKey](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TKey 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TKey')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') |
| 96 | +
|
| 97 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.this[TKey]'></a> |
| 98 | + |
| 99 | +## EmptyDictionary<TKey,TValue>.this[TKey] Property |
| 100 | + |
| 101 | +Gets the element that has the specified key in the read-only dictionary. |
| 102 | + |
| 103 | +```csharp |
| 104 | +public TValue this[TKey key] { get; } |
| 105 | +``` |
| 106 | +#### Parameters |
| 107 | + |
| 108 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.this[TKey].key'></a> |
| 109 | + |
| 110 | +`key` [TKey](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TKey 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TKey') |
| 111 | + |
| 112 | +The key to locate. |
| 113 | + |
| 114 | +Implements [this[TKey]](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2.Item#System_Collections_Generic_IReadOnlyDictionary_2_Item__0_ 'System.Collections.Generic.IReadOnlyDictionary`2.Item(`0)') |
| 115 | +
|
| 116 | +#### Property Value |
| 117 | +[TValue](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TValue 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TValue') |
| 118 | + |
| 119 | +#### Exceptions |
| 120 | + |
| 121 | +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') |
| 122 | +[key](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.this[TKey].key 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.this[TKey].key') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). |
| 123 | +
|
| 124 | +[System.Collections.Generic.KeyNotFoundException](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.KeyNotFoundException 'System.Collections.Generic.KeyNotFoundException') |
| 125 | +The property is retrieved and [key](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.this[TKey].key 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.this[TKey].key') is not found. |
| 126 | + |
| 127 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.Values'></a> |
| 128 | + |
| 129 | +## EmptyDictionary<TKey,TValue>.Values Property |
| 130 | + |
| 131 | +Gets an enumerable collection that contains the values in the read-only dictionary. |
| 132 | + |
| 133 | +```csharp |
| 134 | +public System.Collections.Generic.IEnumerable<TValue> Values { get; } |
| 135 | +``` |
| 136 | + |
| 137 | +Implements [Values](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2.Values 'System.Collections.Generic.IReadOnlyDictionary`2.Values') |
| 138 | +
|
| 139 | +#### Property Value |
| 140 | +[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TValue](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TValue 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') |
| 141 | +### Methods |
| 142 | + |
| 143 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.ContainsKey(TKey)'></a> |
| 144 | + |
| 145 | +## EmptyDictionary<TKey,TValue>.ContainsKey(TKey) Method |
| 146 | + |
| 147 | +Determines whether the read-only dictionary contains an element that has the specified key. |
| 148 | + |
| 149 | +```csharp |
| 150 | +public bool ContainsKey(TKey key); |
| 151 | +``` |
| 152 | +#### Parameters |
| 153 | + |
| 154 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.ContainsKey(TKey).key'></a> |
| 155 | + |
| 156 | +`key` [TKey](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TKey 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TKey') |
| 157 | + |
| 158 | +The key to locate. |
| 159 | + |
| 160 | +Implements [ContainsKey(TKey)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2.ContainsKey#System_Collections_Generic_IReadOnlyDictionary_2_ContainsKey__0_ 'System.Collections.Generic.IReadOnlyDictionary`2.ContainsKey(`0)') |
| 161 | +
|
| 162 | +#### Returns |
| 163 | +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') |
| 164 | +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if the read-only dictionary contains an element that has the specified key; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). |
| 165 | +
|
| 166 | +#### Exceptions |
| 167 | + |
| 168 | +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') |
| 169 | +[key](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.ContainsKey(TKey).key 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.ContainsKey(TKey).key') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). |
| 170 | +
|
| 171 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.GetEnumerator()'></a> |
| 172 | + |
| 173 | +## EmptyDictionary<TKey,TValue>.GetEnumerator() Method |
| 174 | + |
| 175 | +Returns an enumerator that iterates through the collection. |
| 176 | + |
| 177 | +```csharp |
| 178 | +public System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey,TValue>> GetEnumerator(); |
| 179 | +``` |
| 180 | + |
| 181 | +Implements [GetEnumerator()](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1.GetEnumerator 'System.Collections.Generic.IEnumerable`1.GetEnumerator'), [GetEnumerator()](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.IEnumerable.GetEnumerator 'System.Collections.IEnumerable.GetEnumerator') |
| 182 | +
|
| 183 | +#### Returns |
| 184 | +[System.Collections.Generic.IEnumerator<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerator-1 'System.Collections.Generic.IEnumerator`1')[System.Collections.Generic.KeyValuePair<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.KeyValuePair-2 'System.Collections.Generic.KeyValuePair`2')[TKey](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TKey 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TKey')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.KeyValuePair-2 'System.Collections.Generic.KeyValuePair`2')[TValue](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TValue 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TValue')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.KeyValuePair-2 'System.Collections.Generic.KeyValuePair`2')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerator-1 'System.Collections.Generic.IEnumerator`1') |
| 185 | +An enumerator that can be used to iterate through the collection. |
| 186 | + |
| 187 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TryGetValue(TKey,TValue)'></a> |
| 188 | + |
| 189 | +## EmptyDictionary<TKey,TValue>.TryGetValue(TKey, TValue) Method |
| 190 | + |
| 191 | +Gets the value that is associated with the specified key. |
| 192 | + |
| 193 | +```csharp |
| 194 | +public bool TryGetValue(TKey key, out TValue value); |
| 195 | +``` |
| 196 | +#### Parameters |
| 197 | + |
| 198 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TryGetValue(TKey,TValue).key'></a> |
| 199 | + |
| 200 | +`key` [TKey](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TKey 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TKey') |
| 201 | + |
| 202 | +The key to locate. |
| 203 | + |
| 204 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TryGetValue(TKey,TValue).value'></a> |
| 205 | + |
| 206 | +`value` [TValue](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TValue 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TValue') |
| 207 | + |
| 208 | +When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the [value](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TryGetValue(TKey,TValue).value 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TryGetValue(TKey, TValue).value') parameter. This parameter is passed uninitialized. |
| 209 | + |
| 210 | +Implements [TryGetValue(TKey, TValue)](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2.TryGetValue#System_Collections_Generic_IReadOnlyDictionary_2_TryGetValue__0,_1@_ 'System.Collections.Generic.IReadOnlyDictionary`2.TryGetValue(`0,`1@)') |
| 211 | +
|
| 212 | +#### Returns |
| 213 | +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') |
| 214 | +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if the object that implements the [System.Collections.Generic.IReadOnlyDictionary<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyDictionary-2 'System.Collections.Generic.IReadOnlyDictionary`2') interface contains an element that has the specified key; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). |
| 215 | +
|
| 216 | +#### Exceptions |
| 217 | + |
| 218 | +[System.ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentNullException 'System.ArgumentNullException') |
| 219 | +[key](Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.md#Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.TryGetValue(TKey,TValue).key 'Sagara.Core.Collections.EmptyDictionary<TKey,TValue>.TryGetValue(TKey, TValue).key') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). |
| 220 | +### Explicit Interface Implementations |
| 221 | + |
| 222 | +<a name='Sagara.Core.Collections.EmptyDictionary_TKey,TValue_.System.Collections.IEnumerable.GetEnumerator()'></a> |
| 223 | + |
| 224 | +## EmptyDictionary<TKey,TValue>.System.Collections.IEnumerable.GetEnumerator() Method |
| 225 | + |
| 226 | +Returns an enumerator that iterates through a collection. |
| 227 | + |
| 228 | +```csharp |
| 229 | +System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator(); |
| 230 | +``` |
| 231 | + |
| 232 | +Implements [GetEnumerator()](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.IEnumerable.GetEnumerator 'System.Collections.IEnumerable.GetEnumerator') |
0 commit comments