110,538
社区成员
发帖
与我相关
我的任务
分享
public string this[int row, int col]
{
set
{
//.....一些代码
}
}
public class Test
{
public string this[int row, int col]
{
set
{
//.....一些代码
}
}
}
用法
Test test = new Test();
test[x][y]="X,Y";
也就和两维数组用法一样!