Skip to content

Instantly share code, notes, and snippets.

@idg10
Last active September 11, 2018 06:13
Show Gist options
  • Save idg10/7a73b7db4c87a814cd7afa34185902dd to your computer and use it in GitHub Desktop.
Save idg10/7a73b7db4c87a814cd7afa34185902dd to your computer and use it in GitHub Desktop.
Skipping the first task in an IEnumerable<Task<int>> and taking the second
// Never do this!
Task<int> firstTask = ParseFile(path).Skip(1).First();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment