EN
C# / .NET - convert Array to List
8
points
1. Enumerable.ToList
method example
int[] array = new int[]
{
1, 2, 3
};
List<int> list = array.ToList();
foreach (int entry in list)
Console.Write(entry + " ");
Output:
1 2 3