Created
January 13, 2015 12:36
-
-
Save timgaunt/532aa01b410d13b2b32e to your computer and use it in GitHub Desktop.
foreach loop with count
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 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