_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);
}
4.43
7
list.ForEach(i => { i.a = "hello!"; i.b = 99; });
Thank you!
7
0
Are there any code examples left?
New code examples in category C#