Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

foreach index start from at 1 in c#

int i = -1;
foreach (Widget w in widgets)
{
   i++;
   // do something
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #foreach #index #start
ADD COMMENT
Topic
Name
2+6 =