Error CS0029 Cannot implicitly convert type 'float' to 'float[]'尝试编译此代码时出错
float[] timeValues;
float time;
while (lineBeingRead != null)
{
valueSplit = lineBeingRead.Split(exerciseDivider);
for (int i = 0; i < valueSplit.Length; i++)
{
if (valueSplit[i].Contains(textToFind))
{
exerciseLine = valueSplit[i];
string[] timeValuesString = exerciseLine.Split(timeDivider);
for (int a = 0; a < timeValuesString.Length; i++)
{
time = float.Parse(timeValuesString[1]);
timeValues = time;
}
}
}
}
有谁知道这里发生了什么?我无法弄清楚这一点,也找不到任何答案。
LEATH
天涯尽头无女友
相关分类