Note
The returned enumerator supports the IEnumerator.Reset method.
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
Public Function GetEnumerator As IEnumerator(Of KeyValuePair(Of TKey, TValue))
public:
virtual IEnumerator<KeyValuePair<TKey, TValue>>^ GetEnumerator() sealed
abstract GetEnumerator : unit -> IEnumerator<KeyValuePair<'TKey, 'TValue>>
override GetEnumerator : unit -> IEnumerator<KeyValuePair<'TKey, 'TValue>>
The enumerator returned from the dictionary is safe to use concurrently with reads and writes to the dictionary; however, it does not represent a moment-in-time snapshot of the dictionary. The contents exposed through the enumerator may contain modifications made to the dictionary after GetEnumerator was called.