String.IEnumerable.GetEnumerator Method


Returns an enumerator that iterates through the current String object.

System.Collections.IEnumerator IEnumerable.GetEnumerator ();

An enumerator that can be used to iterate through the current string.


This member is an explicit interface member implementation. It can be used only when the String instance is cast to an IEnumerable interface. For more information, see the IEnumerable.GetEnumerator method.

Applies to