C# how to make an array to a list code example
Example 1: c sharp array to list
var list = new List<int>(array);
Example 2: c# array to list
var intArray = new[] { 1, 2, 3, 4, 5 };
var list = new List<int>(intArray);
var list = new List<int>(array);
var intArray = new[] { 1, 2, 3, 4, 5 };
var list = new List<int>(intArray);