jay*_*arp 1 c# list multidimensional-array
到现在为止我使用了多维数组,int[,] numbers = new int[3, 2] { {1, 2}, {3, 4}, {5, 6}};但现在我需要像list一样动态的东西.有多维列表这样的东西吗?我想创建一个像4列的表格.第4列应为10秒计时器,当10秒通过且特定行上的第2列和第3列未填满时,应从列表中删除整行.
尝试
class Foo{
public int Col1 { get;set; }
public int Col2 { get;set; }
public int Col3 { get;set; }
public int Col4 { get;set; }
}
Run Code Online (Sandbox Code Playgroud)
和 List<Foo>