String.IEnumerable.GetEnumerator Method

Definition

Returns an enumerator that iterates through the current String object.

System.Collections.IEnumerator IEnumerable.GetEnumerator ();
Returns

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

Remarks

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