Ranges in C# 8 is a nice new feature that allows slicing collections using a very simple syntax.
This quiz made of a single line of C# 8 can help you understand how Ranges in C# 8 work.
What does this program print to the console? Why?
Post your answer in the comments section below and share the quiz with you friends and colleagues.
In addition, if you want to learn more about Ranges and Indexes check out the Ranges proposal on the official Github project.
Happy C# coding 🙂