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