我有很多Int32
要选择的变量int
要检查。是否可以制作这条线并使用多变量选择一个变量?
Int32 redleft0 = 0;
Int32 redleft1 = 0;
Int32 redleft2 = 0;
Int32 redleft3 = 0;
Int32 redleft4 = 0;
Int32 redleft5 = 0;
Int32 blueleft0 = 0;
Int32 blueleft1 = 0;
Int32 blueleft2 = 0;
Int32 blueleft3 = 0;
Int32 blueleft4 = 0;
Int32 blueleft5 = 0;
redorblue = "red";
for (int i = 0; i < count; i++)
{
String checkleftint = (redorblue + "left" + i);
if (checkleftint < 0)
{
}
}