I have following code. In my test planList collection has 150 items. After deleting count is 75 which means that 75 items was removed from the list. Why after that countItems list is 150.
It seems that items not removed from the list. Why? How I can remove items from the list.
...
planList = (IList<UserPlanned>)_jsSerializer.Deserialize(plannedValues,typeof(IList<UserPlanned>));
int count = planList.ToList().RemoveAll(eup => eup.ID <= -1);
int countItems = planList.Count;
...
The code should be something like