I need to change the following foreach()
to for()
. The problem is that instead of arrays the loop runs through a dictionary.
This is the code I want to transform a for()
:
foreach (var joint in body.Joints.Values) //transformar em um for para usar valoren anteriores
{
eixoX = joint.Position.X.ToString();
eixoX = eixoX.Replace(",", ".");
line.Append(eixoX + ",");
eixoY = joint.Position.Y.ToString();
eixoY = eixoY.Replace(",", ".");
line.Append(eixoY + ",");
}
By not mastering C # I was confused to do this.
Link to the implementations of class .