Skip to content

Instantly share code, notes, and snippets.

@timgaunt
Created January 13, 2015 12:36
Show Gist options
  • Save timgaunt/532aa01b410d13b2b32e to your computer and use it in GitHub Desktop.
Save timgaunt/532aa01b410d13b2b32e to your computer and use it in GitHub Desktop.
foreach loop with count
var enumerateMe = originalList.Select((item, index) => new { Position = index, Item = item });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment