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