Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var devs = new Developer[]
{
new Developer("Dawid"),
new Developer("Mark"),
new Developer("John"),
new Developer("Alice"),
new Developer("Kate")
};
foreach (var dev in devs[1..^2]) // prints "MarkJohn"
{
Console.Write(dev.FirstName);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.