public struct Dictionary<TKey,TValue>.Enumerator: IEnumerator<KeyValuePair<TKey,TValue>>, IDisposable, IDictionaryEnumerator, IEnumerator
Object
ValueType
Dictionary<TKey,TValue>.EnumeratorThis type implements IDisposable, IDictionaryEnumerator, IEnumerator, and System.Collections.Generic.IEnumerator<TKey>.
mscorlib
BCL
Enumerates the elements of a dictionary.
If the underlying dictionary is modified, or the value of any key in that dictionary is modified, the behavior of the enumerator is unspecified.For information on the behavior of enumerators, see the Description section of IEnumerator<T>.
Default implementations of collections in System.Collections.Generic are not synchronized.
This type is a member of type Dictionary<TKey,TValue>.
System.Collections.Generic Namespace
Dictionary<TKey,TValue>.Enumerator Constructors
Dictionary<TKey,TValue>.Enumerator Constructor
Dictionary<TKey,TValue>.Enumerator Methods
Dictionary<TKey,TValue>.Enumerator.Dispose Method
Dictionary<TKey,TValue>.Enumerator.MoveNext Method
Dictionary<TKey,TValue>.Enumerator.System.Collections.IEnumerator.Reset Method
Dictionary<TKey,TValue>.Enumerator Properties
Dictionary<TKey,TValue>.Enumerator.Current Property
Dictionary<TKey,TValue>.Enumerator.System.Collections.IDictionaryEnumerator.Entry Property
Dictionary<TKey,TValue>.Enumerator.System.Collections.IDictionaryEnumerator.Key Property
Dictionary<TKey,TValue>.Enumerator.System.Collections.IDictionaryEnumerator.Value Property
Dictionary<TKey,TValue>.Enumerator.System.Collections.IEnumerator.Current Property
public Enumerator(Dictionary<TKey,TValue> dictionary)
Initializes a new dictionary enumerator for the specified dictionary.
- dictionary
- The dictionary to enumerate.
System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace
public void Dispose()
This method is implemented to support the IDisposable interface.
System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace
public bool MoveNext()
This method is implemented to support the IEnumerator and IEnumerator<T> interfaces.
System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace
void IEnumerator.Reset()
This method is implemented to support the IEnumerator interface.
System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace
public KeyValuePair<TKey,TValue> Current { get; }
This read-only property is implemented to support the IEnumerator<T> interface.
System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace
DictionaryEntry IDictionaryEnumerator.Entry { get; }
This read-only property is implemented to support the IDictionaryEnumerator interface.
System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace
object IDictionaryEnumerator.Key { get; }
This read-only property is implemented to support the IDictionaryEnumerator interface.
System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace
object IDictionaryEnumerator.Value { get; }
This read-only property is implemented to support the IDictionaryEnumerator interface.
System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace
object IEnumerator.Current { get; }
This read-only property is implemented to support the IEnumerator interface.
System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace