System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure

public struct Dictionary<TKey,TValue>.Enumerator: IEnumerator<KeyValuePair<TKey,TValue>>, IDisposable, IDictionaryEnumerator, IEnumerator

Base Types

Object
  ValueType
    Dictionary<TKey,TValue>.Enumerator

This type implements IDisposable, IDictionaryEnumerator, IEnumerator, and System.Collections.Generic.IEnumerator<TKey>.

Assembly

mscorlib

Library

BCL

Summary

Enumerates the elements of a dictionary.

Description

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>.

See Also

System.Collections.Generic Namespace

Members

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


Dictionary<TKey,TValue>.Enumerator Constructor

public Enumerator(Dictionary<TKey,TValue> dictionary)

Summary

Initializes a new dictionary enumerator for the specified dictionary.

Parameters

dictionary
The dictionary to enumerate.

See Also

System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace

Dictionary<TKey,TValue>.Enumerator.Dispose Method

public void Dispose()

Summary

This method is implemented to support the IDisposable interface.

See Also

System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace

Dictionary<TKey,TValue>.Enumerator.MoveNext Method

public bool MoveNext()

Summary

This method is implemented to support the IEnumerator and IEnumerator<T> interfaces.

See Also

System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace

Dictionary<TKey,TValue>.Enumerator.System.Collections.IEnumerator.Reset Method

void IEnumerator.Reset()

Summary

This method is implemented to support the IEnumerator interface.

See Also

System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace

Dictionary<TKey,TValue>.Enumerator.Current Property

public KeyValuePair<TKey,TValue> Current { get; }

Summary

This read-only property is implemented to support the IEnumerator<T> interface.

See Also

System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace

Dictionary<TKey,TValue>.Enumerator.System.Collections.IDictionaryEnumerator.Entry Property

DictionaryEntry IDictionaryEnumerator.Entry { get; }

Summary

This read-only property is implemented to support the IDictionaryEnumerator interface.

See Also

System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace

Dictionary<TKey,TValue>.Enumerator.System.Collections.IDictionaryEnumerator.Key Property

object IDictionaryEnumerator.Key { get; }

Summary

This read-only property is implemented to support the IDictionaryEnumerator interface.

See Also

System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace

Dictionary<TKey,TValue>.Enumerator.System.Collections.IDictionaryEnumerator.Value Property

object IDictionaryEnumerator.Value { get; }

Summary

This read-only property is implemented to support the IDictionaryEnumerator interface.

See Also

System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace

Dictionary<TKey,TValue>.Enumerator.System.Collections.IEnumerator.Current Property

object IEnumerator.Current { get; }

Summary

This read-only property is implemented to support the IEnumerator interface.

See Also

System.Collections.Generic.Dictionary<TKey,TValue>.Enumerator Structure, System.Collections.Generic Namespace