I have a SortedList called m_FieldMappings.
All objects in it that are marked 'Delete', i want to remove from the SortedList.
foreach (FieldMapping map in m_FieldMappings.GetValueList())
{
if (map.DBState == enDBAction.Delete) m_FieldMappings.Remove(map.key);
}
The problem seems to be that since I am doing a foreach, the collection should not change otherwise you get an enumeration error.
I'm looking for another way of doing this. :o
