Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Text.​SpanLineEnumerator

Assembly: System.Memory

Implemented Interfaces

Enumerates the lines of a <see cref="T:System.ReadOnlySpan`1" /> .

Properties

public ReadOnlySpan<​char>
Current
Gets the line at the current position of the enumerator.

Methods

GetEnumerator​()
Returns this instance as an enumerator.
Returns This instance as an enumerator.
public bool
MoveNext​()
Advances the enumerator to the next line of the span.
Returns <see langword="true" /> if the enumerator successfully advanced to the next line; <see langword="false" /> if the enumerator has advanced past the end of the span.
public bool
Equals​(object obj)
Inherited from ValueType
public int
GetHashCode​()
Inherited from ValueType
public string
ToString​()
Inherited from ValueType
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object