"Q" in LINQ means "Query". LINQ is not intended to update objects.
You can use LINQ to find the object you want to update, and then update it โtraditionallyโ.
var toUpdate = _seasons.Single(x => x.Text == "ALL"); toUpdate.ValueSelected = true;
This code assumes that there is only one entry with Text == "ALL" . This code throws an exception if it does not exist or there are several.
If there is none, none, use SingleOrDefault :
var toUpdate = _seasons.SingleOrDefault(x => x.Text == "ALL"); if(toUpdate != null) toUpdate.ValueSelected = true;
If it is possible that there are several, use Where :
var toUpdate = _seasons.Where(x => x.Text == "ALL"); foreach(var item in toUpdate) item.ValueSelected = true;
source share