how to convert an arry to list c# code example Example: c sharp array to list var list = new List<int>(array);