how to make a method that takes a list that works for every datatype c# code example
Example: to list c#
var arr = new int[] {1, 2, 3};
List<int> list = arr.ToList();
var arr = new int[] {1, 2, 3};
List<int> list = arr.ToList();