model type list c# code example
Example 1: to list c#
var arr = new int[] {1, 2, 3};
List<int> list = arr.ToList();
Example 2: c# new list object
var intList = new List<int>();
var arr = new int[] {1, 2, 3};
List<int> list = arr.ToList();
var intList = new List<int>();