我正在使用该函数Array.Clear()
清空数组,但它会产生错误。这是我使用的代码:
private int[] activeFielderNumber = new int[10];
private string[] activeFielderAction = new string[10];
....
...
....
Array.Clear(activeFielderNumber, 0, activeFielderNumber.Length);
Array.Clear(activeFielderAction, "", activeFielderAction.Length);
错误是:
error CS0103: The name `Array' does not exist in the current context
我怎么解决这个问题?