_swapbatch.foreach multiple statements c# code example
Example 1: _swapbatch.foreach multiple statements c#
list.ForEach(i => { i.a = "hello!"; i.b = 99; });
Example 2: _swapbatch.foreach multiple statements c#
for (int i = 0; i < anotherList.Count; i++)
{
TheVM.List[i] = new Tuple<string, bool>(TheVM.List[i].Item1, anotherList[i].Item2 == 1);
}