Skip to content

Instantly share code, notes, and snippets.

@dsibinski
Last active February 11, 2019 17:13
Show Gist options
  • Save dsibinski/c13e6535c6601b033c5d6285a4908305 to your computer and use it in GitHub Desktop.
Save dsibinski/c13e6535c6601b033c5d6285a4908305 to your computer and use it in GitHub Desktop.
var array = new[] { 'A', 'B', 'C', 'D', 'E', 'F', 'G' , 'H'};
var arraySlice = array.Skip(1).Take(3).ToArray(); // contains 'B', 'C' and 'D'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment