Could you please help me make this code more in Linq style.
I just trying to learn a new things here.
IList<object[]> argsPerCallforserialization = new List<object[]>();
foreach (var argument in argsPerCall)
{
object[] temp = new object[6];
temp[0] = argument[0];
temp[1] = argument[1];
temp[2] = argument[2];
temp[3] = ((McPosition)argument[3]).Station;
temp[4] = ((McPosition)argument[3]).Slot;
temp[5] = ((McPosition)argument[3]).Subslot;
argsPerCallforserialization.Add(temp);
}
Thanks .
Sounds like:
Can’t say it sounds like the nicest API in the work, but hey…