สร้างรายการ c#
using System.Collections.Generic
//type is your data type (Ej. int, string, double, bool...)
List<type> newList = new List<type>();
ทำให้รายชื่อซี#
IList<int> newList = new List<int>(){1,2,3,4};
decalre เป็น int ได้รายชื่อ mvc
List<int> intList = new List<int>();