Him
I have a List<MyObject> _users
, and I would like to find all users which the userName begin by "toto" and set an attribute, for all of them, bool excepted = true.
I actually have this code:
_users.FindAll(z => z.userName.StartWith("toto") == true && location == "London")
and I would like to reach something like this:
_users.FindAll(z => z.userName.StartWith("toto") == true && location == "London").Cast<MyObject>().excepted = true;
The Cast to know which kind of object that I'm currently using, and then set my attribute.... This code obviously don't work at all, but I have no idea how could I do it and if it possible to do that :(
Thanks