Upraviť

Zdieľať cez


SequenceReader<T>.IsNext Method

Definition

Overloads

IsNext(ReadOnlySpan<T>, Boolean)

Checks whether the values specified in a read-only span are next in the sequence.

IsNext(T, Boolean)

Checks whether a specified value is next in the sequence.

IsNext(ReadOnlySpan<T>, Boolean)

Source:
SequenceReader.Search.cs
Source:
SequenceReader.Search.cs
Source:
SequenceReader.Search.cs

Checks whether the values specified in a read-only span are next in the sequence.

public bool IsNext (ReadOnlySpan<T> next, bool advancePast = false);
public bool IsNext (scoped ReadOnlySpan<T> next, bool advancePast = false);
member this.IsNext : ReadOnlySpan<'T (requires 'T : struct)> * bool -> bool
Public Function IsNext (next As ReadOnlySpan(Of T), Optional advancePast As Boolean = false) As Boolean

Parameters

next
ReadOnlySpan<T>

The span to compare the next items to.

advancePast
Boolean

true to move past the next values if they are found; otherwise, false.

Returns

true if the values are next in sequence; otherwise, false.

Applies to

IsNext(T, Boolean)

Source:
SequenceReader.Search.cs
Source:
SequenceReader.Search.cs
Source:
SequenceReader.Search.cs

Checks whether a specified value is next in the sequence.

public bool IsNext (T next, bool advancePast = false);
member this.IsNext : 'T * bool -> bool
Public Function IsNext (next As T, Optional advancePast As Boolean = false) As Boolean

Parameters

next
T

The value to compare the next items to.

advancePast
Boolean

true to move past the next values if they are found; otherwise, false.

Returns

true if the values are next in sequence; otherwise, false.

Applies to