Last active
February 11, 2019 17:24
-
-
Save dsibinski/6621a3ca282c539274851b4bba11c8cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var array = new[] { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H' }; | |
Range r = Range.Create(2, ^1); // range from 2nd to | |
// 1st element from the end | |
Console.WriteLine(array[r]); // prints "CDEFG" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment