An Introduction to SequenceReader

added by DotNetKicks
9/5/2019 11:29:19 AM

1 Kicks, 212 Views

In this post, I want to explore a new feature of .NET Core 3.0, which simplifies working with a ReadOnlySequence. You may find yourself using a ReadOnlySequence if you work with a PipeReader from System.IO.Pipelines. Before .NET Core 3.0, one would need to manually slice through the ReadOnlySequence from the Buffer property on the ReadResult .