I have three string arrays:
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" };
I want to construct an array that points to these arrays as:
private var[] ArrayReferences = new var[] { PMCTableColumnNames, PMDTableColumnNames, PMDZonesTableColumnNames };
When i put index to this (ArrayReferences) array, i want to get all elements of the specific array like this:
string[] _PMDTableColumnNames = ArrayReferences[1];
How can i do that?
var[]? And are you telling us thatstring[] _PMDTableColumnNames = ArrayReferences[1];is not working?var[]here, since the compiler can infer the type?