Hello NG,
is it possible to use linq to remove certain objects from a generic list?
Something more or less like:
from obj in MyList
where obj.Id 25
delete obj
I know that I can do the following
List<MyObjobjLi st = (from o in MyList where o.Id>25 select o).ToList();
and then remove all returnt objects explicitly from "MyList" using
MyList.Remove(. ..)
Thanks for hints and infos...
Regards
Rainer Queck
is it possible to use linq to remove certain objects from a generic list?
Something more or less like:
from obj in MyList
where obj.Id 25
delete obj
I know that I can do the following
List<MyObjobjLi st = (from o in MyList where o.Id>25 select o).ToList();
and then remove all returnt objects explicitly from "MyList" using
MyList.Remove(. ..)
Thanks for hints and infos...
Regards
Rainer Queck
Comment