Method GetEnumerator
GetEnumerator()
Returns an enumerator that iterates through the entries in the dictionary whose values are still available.
Declaration
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<KeyValuePair<TKey, TValue>> |
Implements
Remarks
Enumeration is safe while other threads modify the dictionary. Entries added by other threads during enumeration may or may not be included.
Exceptions
| Type | Condition |
|---|---|
| ObjectDisposedException | The dictionary has been disposed. |