MemoryExtensions.EnumerateLines 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
EnumerateLines(ReadOnlySpan<Char>) |
Returns an enumeration of lines over the provided span. |
EnumerateLines(Span<Char>) |
Returns an enumeration of lines over the provided span. |
EnumerateLines(ReadOnlySpan<Char>)
Returns an enumeration of lines over the provided span.
public:
[System::Runtime::CompilerServices::Extension]
static System::Text::SpanLineEnumerator EnumerateLines(ReadOnlySpan<char> span);
public static System.Text.SpanLineEnumerator EnumerateLines (this ReadOnlySpan<char> span);
static member EnumerateLines : ReadOnlySpan<char> -> System.Text.SpanLineEnumerator
<Extension()>
Public Function EnumerateLines (span As ReadOnlySpan(Of Char)) As SpanLineEnumerator
Parameters
- span
- ReadOnlySpan<Char>
A span containing the lines to enumerate.
Returns
An enumeration of lines.
Remarks
It is recommended that protocol parsers not utilize this API. See the documentation for ReplaceLineEndings() for more information on how newline sequences are detected.
Applies to
EnumerateLines(Span<Char>)
Returns an enumeration of lines over the provided span.
public:
[System::Runtime::CompilerServices::Extension]
static System::Text::SpanLineEnumerator EnumerateLines(Span<char> span);
public static System.Text.SpanLineEnumerator EnumerateLines (this Span<char> span);
static member EnumerateLines : Span<char> -> System.Text.SpanLineEnumerator
<Extension()>
Public Function EnumerateLines (span As Span(Of Char)) As SpanLineEnumerator
Parameters
Returns
An enumeration of lines.
Remarks
It is recommended that protocol parsers not utilize this API. See the documentation for ReplaceLineEndings() for more information on how newline sequences are detected.