Check out example codes for "instantiate list with values c#". It will help you in understanding the concepts better.

Code Example 1

var list = new List<string> {
  "test1",
  "test2",
  "test3"
};

Learn ReactJs, React Native from akashmittal.com