Check out example codes for "c sharp list indexer". It will help you in understanding the concepts better.

Code Example 1

// You can index a List using listName[int]
List<string> stringList = new List<string>{"string1", "string2"};
string name = stringList[1];
// Output:
// "string2"

Learn ReactJs, React Native from akashmittal.com