LINQ doesn't help here, but you can use List.ForEach:
List.ForEach Method
Performs the specified action on each element of the List.
Example:
myList.ForEach(p => myFunc(p));
The value passed to the lambda expression is the list item, so in this example p
is a long
if myList
is a List
.