In my one Application I have declared one List
public List<double[]> pane1 = new List<double[]>();
// Below code is to add some double arrays in this list
pane1.Add(imp);
pane1.Add(normal);
pane1.Add(useless);
// Below code is retrieving of values from this list
foreach (double[] pan in pane1)
{
int diffx = ds.data.Length - pan.Length;
int pointx = ptx - diffx;
if (pointx < 0)
pointx = 0;
double tip = pan[pointx];
tt = tt.Append("\n");
//tt = tt.Append(pan.ToString());
tt = tt.Append("\t");
tt = tt.Append(Math.Round(tip, 2));
}
Question : I am able to retrieve data of these arrays successfully , but I also want to retrieve name of arrays , is it possible ?
What you are asking for is not possible. The “name” that you seem to be looking for is not “the name of the array”; it is just a name of a variable that happens to point to the array.
There could be several variables pointing to that very same array at a time. Case in point, would you expect the line you have commented out in your code to write
pan? After all, that is the name of a variable that points to the current array.