Check out example codes for "how to create a list c#". It will help you in understanding the concepts better.

Code Example 1

using System.Collections.Generic
//type is your data type (Ej. int, string, double, bool...)
List<type> newList = new List<type>();

Code Example 2

IList<int> newList = new List<int>(){1,2,3,4};

Code Example 3

C# By Magnificent Mamba on Dec 23 2019
IList<int> newList = new List<int>(){1,2,3,4};

Learn ReactJs, React Native from akashmittal.com