StringTokenizer.Enumerator Struct

Definition

Enumerates the String tokens represented by StringSegment.

C#
public struct StringTokenizer.Enumerator : System.Collections.Generic.IEnumerator<Microsoft.Extensions.Primitives.StringSegment>
Inheritance
StringTokenizer.Enumerator
Implements

Constructors

Properties

Current

Gets the current StringSegment from the StringTokenizer.

Methods

Dispose()

Releases all resources used by the StringTokenizer.Enumerator.

MoveNext()

Advances the enumerator to the next token in the StringTokenizer.

Reset()

Resets the StringTokenizer.Enumerator to its initial state.

Explicit Interface Implementations

IEnumerator.Current

Gets the element in the collection at the current position of the enumerator.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)