API Proposal: add ReadLines to TextReader #48255
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-System.IO
needs-further-triage
Issue has been initially triaged, but needs deeper consideration or reconsideration
Projects
Milestone
Background and Motivation
We have
File.ReadLines
but notTextReader.ReadLines
, which would work withStringReader
andStreamReader
and make using LINQ with lines easier and standardized.Proposed API
Usage Examples
Example using
ReadLines
with LINQ to process a CSV from aStringReader
:The text was updated successfully, but these errors were encountered: