Check out example codes for "decalre an int list mvc". It will help you in understanding the concepts better.

Code Example 1

List<int> intList = new List<int>();

Learn ReactJs, React Native from akashmittal.com