Chapter 18 Examples Examples from Chapter 18 (Memory Efficiency) of Programming C# 10.0 (O'Reilly). (Don't) Copy That Example 1. Deconstructing a URL Example 2. Defeating the point of the exercise by using Substring Representing Sequential Elements with Span Example 3. Iterating over a Span<int> Example 4. Passing an int[] as a ReadOnlySpan<int> Example 5. Passing a stack-allocated array as a ReadOnlySpan<int> Example 6. Parsing integers in a string using Span<char> Processing Data Streams with Pipelines Example 7. Handling JSON in HTTP requests Example 8. Handling JSON without allocations