Edit

Share via


MemoryExtensions.SpanSplitEnumerator<T> Struct

Definition

Enables enumerating each split within a ReadOnlySpan<T> that has been divided using one or more separators.

public: generic <typename T>
 where T : IEquatable<T>value class MemoryExtensions::SpanSplitEnumerator : System::Collections::Generic::IEnumerator<Range>
public: generic <typename T>
 where T : IEquatable<T>value class MemoryExtensions::SpanSplitEnumerator
public ref struct MemoryExtensions.SpanSplitEnumerator<T> : System.Collections.Generic.IEnumerator<Range> where T : IEquatable<T>
public ref struct MemoryExtensions.SpanSplitEnumerator<T> where T : IEquatable<T>
type MemoryExtensions.SpanSplitEnumerator<'T (requires 'T :> IEquatable<'T>)> = struct
    interface IEnumerator<Range>
    interface IEnumerator
    interface IDisposable
type MemoryExtensions.SpanSplitEnumerator<'T (requires 'T :> IEquatable<'T>)> = struct
Public Structure MemoryExtensions.SpanSplitEnumerator(Of T)
Implements IEnumerator(Of Range)
Public Structure MemoryExtensions.SpanSplitEnumerator(Of T)

Type Parameters

T

The type of items in the MemoryExtensions.SpanSplitEnumerator<T>.

Inheritance
MemoryExtensions.SpanSplitEnumerator<T>
Implements

Properties

Current

Gets the current element of the enumeration.

Source

Gets the source span being enumerated.

Methods

GetEnumerator()

Gets an enumerator that allows for iteration over the split span.

MoveNext()

Advances the enumerator to the next element of the enumeration.

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.

Applies to