I have a list which I want to update using LINQ.
class Student { private string name; private int marks; public string Name { get; set;} pub
Above can be achieved by just assign the value back to the collection
myList = myList .Where(w => w.Name == "Tom") .Select(w=> { w.Marks = 35; return w}) .ToList();