string values to list c# code example
Example 1: c# declare an int list
List<int> intList = new List<int>();
Example 2: to list c#
var arr = new int[] {1, 2, 3};
List<int> list = arr.ToList();
List<int> intList = new List<int>();
var arr = new int[] {1, 2, 3};
List<int> list = arr.ToList();