CharEnumerator.IEnumerator.Current Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the currently referenced character in the string enumerated by this CharEnumerator object. For a description of this member, see IEnumerator.Current.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

object IEnumerator.Current { get; }

Property Value

Type: System.Object

The boxed Unicode character currently referenced by this CharEnumerator object.

Exception Condition
InvalidOperationException

Enumeration has not started.

-or-

Enumeration has ended.

This member is an explicit interface member implementation. It can be used only when the CharEnumerator instance is cast to an IEnumerator interface.

.NET Framework
Available since 1.1
Return to top
Show: