For VS. Foreach in MOSS
Doing the project, I noticed, the performance For steatment is lower than Foreach especially loop List Control.
int count = list.ItemCount;
for (int i = 0; i <>count, i ++)
{
// it is very low performance
SPListItem item = list.Items[i];
...
}
SPListItemCollection items = list.Items;
// nice habit
foreach (SPListItem item in Items)
{
...
}