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

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

Base Types

Object
  ValueType
    Dictionary<TKey,TValue>.KeyCollection.Enumerator

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

Assembly

mscorlib

Library

BCL

Summary

Enumerates the elements of a key collection.

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.

See Also

System.Collections.Generic Namespace

Members

Dictionary<TKey,TValue>.KeyCollection.Enumerator Methods

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

Dictionary<TKey,TValue>.KeyCollection.Enumerator Properties

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


Dictionary<TKey,TValue>.KeyCollection.Enumerator.Dispose Method

public void Dispose()

Summary

This method is implemented to support the IDisposable interface.

See Also

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

Dictionary<TKey,TValue>.KeyCollection.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>.KeyCollection.Enumerator Structure, System.Collections.Generic Namespace

Dictionary<TKey,TValue>.KeyCollection.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>.KeyCollection.Enumerator Structure, System.Collections.Generic Namespace

Dictionary<TKey,TValue>.KeyCollection.Enumerator.Current Property

public TKey Current { get; }

Summary

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

See Also

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

Dictionary<TKey,TValue>.KeyCollection.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>.KeyCollection.Enumerator Structure, System.Collections.Generic Namespace