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