xxxxxxxxxx
List<string> someList = <some way to init>
someList.ForEach(delegate(string s) {
<process the string>
});
xxxxxxxxxx
// Create a list of integers
List<int> numbers = new List<int>() { 1, 2, 3, 4, 5 };
// Iterate over the list using foreach loop
foreach (int number in numbers)
{
// Print each number
Console.WriteLine(number);
}
xxxxxxxxxx
List<string> someList = new List<string>;
foreach(string item in someList)
{
item.Add(WhtaDoYouWhantToAdd);
}