Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# best way to loop and remove

for (int i = safePendingList.Count - 1; i >= 0; i--)
{
    // some code
    // safePendingList.RemoveAt(i);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #remove
ADD COMMENT
Topic
Name
3+7 =