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