SequenceReader<T>.TryAdvanceTo(T, Boolean) Method

Definition

Searches for a specified delimiter and optionally advances past it if it is found.

C#
public bool TryAdvanceTo(T delimiter, bool advancePastDelimiter = true);

Parameters

delimiter
T

The delimiter to search for.

advancePastDelimiter
Boolean

true to move past the delimiter if it is found; otherwise, false.

Returns

true if the given delimiter was found; otherwise, false.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1