mscorlib(4.0.0.0) API with additions
|
Supports iterating over a T:System.String object and reading its individual characters. This class cannot be inherited. More...
Public Member Functions | |
object | Clone () |
Creates a copy of the current T:System.CharEnumerator object. More... | |
bool | MoveNext () |
Increments the internal index of the current T:System.CharEnumerator object to the next character of the enumerated string. More... | |
void | Dispose () |
Releases all resources used by the current instance of the T:System.CharEnumerator class. More... | |
void | Reset () |
Initializes the index to a position logically before the first character of the enumerated string. More... | |
![]() | |
bool | MoveNext () |
Advances the enumerator to the next element of the collection. More... | |
void | Reset () |
Sets the enumerator to its initial position, which is before the first element in the collection. More... | |
Properties | |
char | Current [get] |
Gets the currently referenced character in the string enumerated by this T:System.CharEnumerator object. More... | |
![]() | |
object | Current [get] |
Gets the element in the collection at the current position of the enumerator. More... | |
![]() | |
object | Current [get] |
Gets the element in the collection at the current position of the enumerator. More... | |
Supports iterating over a T:System.String object and reading its individual characters. This class cannot be inherited.
Definition at line 10 of file CharEnumerator.cs.
object System.CharEnumerator.Clone | ( | ) |
Creates a copy of the current T:System.CharEnumerator object.
Implements System.ICloneable.
Definition at line 64 of file CharEnumerator.cs.
void System.CharEnumerator.Dispose | ( | ) |
Releases all resources used by the current instance of the T:System.CharEnumerator class.
Implements System.IDisposable.
Definition at line 85 of file CharEnumerator.cs.
bool System.CharEnumerator.MoveNext | ( | ) |
Increments the internal index of the current T:System.CharEnumerator object to the next character of the enumerated string.
true
if the index is successfully incremented and within the enumerated string; otherwise, false
.Implements System.Collections.IEnumerator.
Definition at line 72 of file CharEnumerator.cs.
void System.CharEnumerator.Reset | ( | ) |
Initializes the index to a position logically before the first character of the enumerated string.
Implements System.Collections.IEnumerator.
Definition at line 95 of file CharEnumerator.cs.
|
get |
Gets the currently referenced character in the string enumerated by this T:System.CharEnumerator object.
T:System.InvalidOperationException | The index is invalid; that is, it is before the first or after the last character of the enumerated string. |
Definition at line 41 of file CharEnumerator.cs.