我通过一个阵列,在我转播阵列的单独卷宗中发挥作用。 当我返回阵列并在我的主要档案中检查其长度时,它就是以前的规模。 我绝对没有把要做的事情混为一谈。
//this is the code in my main file
string[] Names = new string[0];
selectCode.namesSetup(Names);
//and this is the code in my file where the function is located
public string[] namesSetup(string[] Names)
{
Array.Clear(Names, 0, Names.Length);
Array.Resize(ref Names, 65);
return Names;
}