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
public ref struct SpanRuneEnumerator
type SpanRuneEnumerator = struct
Public Structure SpanRuneEnumerator
- Inheritance
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 C++, 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. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om