我有三个字符串数组:
private readonly string[] PMCTableColumnNames = new string[] { "PMCIP", "Description", "Cam1ReferencePoints", "Cam2ReferencePoints", "DataserverIP" };
private readonly string[] PMDTableColumnNames = new string[] { "PMDIP", "Description" };
private readonly string[] PMDZonesTableColumnNames = new string[] { "PMDIP", "Description", "Zone" };
我想构造一个指向这些数组的数组:
private var[] ArrayReferences = new var[] { PMCTableColumnNames, PMDTableColumnNames, PMDZonesTableColumnNames };
当我将此(ArrayReferences)数组索引时,我想获取特定数组的所有元素,如下所示:
string[] _PMDTableColumnNames = ArrayReferences[1];
我怎样才能做到这一点?