We help IT Professionals succeed at work.

C# SeriesCollection Reference

mcs26
mcs26 asked
on
Hi,

I am copying some code and have across the two lines below.

SeriesCollecction mySC

mySC[0][1]
mySC[0][2]

Does this mean the first [ ] mean the index of the series collection? The second [ ] the element in that index?

Thanks,
Comment
Watch Question

Most Valuable Expert 2011
Top Expert 2015

Commented:
The first [] means the index of the element within the SeriesCollection, and it returns a Series object. The second I am not sure, and the documentation seems a bit thin on this. I'll try to find it.
SeriesCollection is a class that returns a Collection of Series objects, as the Series object is also a "collectible" object I understand that the first [] references the Item in the Collection (thus, a Series object) and the second one references the Item inside the Series object returned by the first [].