我有一个函数,它使用 2D 锯齿状数组来保存 SQL 查询中的记录。
如何正确返回锯齿状数组?
我试过类似的东西:
public string[][] GetResult()
{
return result;
}
在我的主程序中:
string[][] test = new string[server1.GetResult().Length][];
test = server1.GetResult();
好吧,正如预期的那样,它没有用。
我不知道如何解决我的问题。