object to list to c# code example
Example 1: convert object to list of objects c#
IList collection = (IList)myObject;
Example 2: to list c#
var arr = new int[] {1, 2, 3};
List<int> list = arr.ToList();
IList collection = (IList)myObject;
var arr = new int[] {1, 2, 3};
List<int> list = arr.ToList();