我有一个属性列表。我想为同一页面中的多个元素添加这些PropertiesCollections。这就是说,是否有可能在c#中添加2维列表?
[0] => List
([0] => ID
[1] => Name
[2] => Add
[3] => PhoneNo
[4] => City)
[1] => List
(And so on....
internal class PropertiesCollection : List<Properties>
{
}
internal class Properties
{
}
PropertiesCollection collection = new PropertiesCollection();
我如何能实现
Something[0,collection[0]]
Something[0,collection[1]]
Something[1,collection[0]]
Something[1,collection[1]] ?
就像一个多维数组? – Jodrell
你不能使用PropertiesCollection列表吗? –