String::IEnumerable<Char>::GetEnumerator Method ()
Returns an enumerator that iterates through the current String object.
Assembly: mscorlib (in mscorlib.dll)
private: virtual IEnumerator<wchar_t>^ GetEnumerator() sealed = IEnumerable<wchar_t>::GetEnumerator
Return Value
Type: System.Collections.Generic::IEnumerator<Char>^A strongly-typed enumerator that can be used to iterate through the current String object.
Implements
IEnumerable<T>::GetEnumerator()This member is an explicit interface member implementation. It can be used only when the String instance is cast to an IEnumerable<T> interface object. For more information, see the GetEnumerator method.
Universal Windows Platform
Available since 8.1
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8.1
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: