Thread
:
count iteration in a foreach
View Single Post
12-03-2007, 03:14 PM
#
4
(
permalink
)
Zippygoose
Math Enthusiast/Badass MC
Join Date: Jun 2002
Location: Seattle
Posts: 614
+0 Internets
Like a lot of others (probably) I went about trying to be clever with a way to do it in C# but there honestly isn't one that makes sense or is at all efficient. To access the iterator you should use for because foreach isn't made for that.
Zippygoose
View Public Profile
Visit Zippygoose's homepage!
Find More Posts by Zippygoose