how to loop through list in c# using linq code example Example: linq foreach c# someValues.ToList().ForEach(x => list.Add(x + 1));