daelmo wrote:
Hi Shane,
You could do something like:
List<int> entIndexesToRemove = users.FindMatches(UserFields.Female == true);
entIndexesToRemove.Reverse();
foreach (int i in entIndexesToRemove)
{
users.RemoveAt(i);
}
Thank you David,
i keep the users collection in the session object. and i use it for something.
and i need the new (filtered) collection for some other reason.
if i remove the females from the users collection, it gives me a problem in where i need the full list. if i dont remove it it gives me a problem in where i need the filtered list.
what would be the best thing to do here? i can keep a copy of users collection in session object with a different name and use one for full list and one for filtered list but i feel like theres gotta be a better way.
any suggestions?
thanks
-shane