Concatenate two IEnumerable sequences in C# .NET

We can use the Range method to build two integer sequences as follows: You can join the two sequences using the Concat method: You’ll see that the concatenated sequence holds all numbers from the first and the second sequence:

via Concatenate two IEnumerable sequences in C# .NET — Exercises in .NET with Andras Nemes

Blog at WordPress.com.

Up ↑