SpanRuneEnumerator Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an enumerator for the Rune values represented by a span containing UTF-16 text.
public value class SpanRuneEnumerator : System::Collections::Generic::IEnumerator<System::Text::Rune>
public value class SpanRuneEnumerator
public ref struct SpanRuneEnumerator : System.Collections.Generic.IEnumerator<System.Text.Rune>
public ref struct SpanRuneEnumerator
type SpanRuneEnumerator = struct
interface IEnumerator<Rune>
interface IEnumerator
interface IDisposable
type SpanRuneEnumerator = struct
Public Structure SpanRuneEnumerator
Implements IEnumerator(Of Rune)
Public Structure SpanRuneEnumerator
- Inheritance
- Implements
Remarks
This type is not intended to be referenced directly by application code. Instead, use the EnumerateRunes method along with language-specific enumeration constructs to enumerate Rune values within spans.
The foreach statement of the C# language (For Each in Visual Basic) hides the complexity of enumerators. Therefore, using foreach is recommended, instead of directly manipulating the enumerator.
Properties
| Current |
Gets the Rune at the current position of the enumerator. |
Methods
| GetEnumerator() |
Returns the current enumerator instance. |
| MoveNext() |
Advances the enumerator to the next Rune of the span. |
Explicit Interface Implementations
| IDisposable.Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| IEnumerator.Current |
Gets the element in the collection at the current position of the enumerator. |
| IEnumerator.Reset() |
Sets the enumerator to its initial position, which is before the first element in the collection. |