Thought you should know
Quick note if you’re a .NET programmer, be careful when using any object/data type that is derived from the collections class. Removing values from the list will automatically force a resize and change in indexes before you can traverse through the whole list, assuming you’re start from the beginning to the end (i.e. index 0, 1, 2, 3,…,n). So the best way to do this is to simply traverse through the object/data type backwards (i.e. index n-1… 3, 2, 1, 0).

0 Comments:
Post a Comment
<< Home