SequenceReader<T>.IsNext Method
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.
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
משוב
https://aka.ms/ContentUserFeedback.
בקרוב: במהלך 2024, נפתור בעיות GitHub כמנגנון המשוב לתוכן ונחליף אותו במערכת משוב חדשה. לקבלת מידע נוסף, ראה:שלח והצג משוב עבור