I was given a C # program from a software manufacturer that accesses a file and gives me a list of lists of data structures
List<List<dataPt_struct>> RasterSet = new List<List<dataPt_struct>>();
this gives me a list of "indexes" something like
RasterSet Count = 100
[0]Count = 400
[1]Count = 411
etc. inside them, I have another list of "indexes" that contain the actual data structure
[0]
[X]
[Y]
[Z]
...
[399]
[X]
[Y]
[Z]
so now I need to access part X, Y, Z of the data table inside the list of lists. For example, is it possible to use LINQ to say
if (RasterSet[i] >= 0 && Rasterset[i] =< 10)
RasterSet[i].Average(z=> z.Z);
to give me the average value of all the Z values ββthat are contained in the βindicesβ [0] - [10], each index of which contains hundreds or thousands of secondary indices, each of which has [x] [y] [z] values?
edit: foreach, , , linq . .