public void ReadData(object Ob) {
if(Ob.GetType().IsGenericType && Ob is IList) {
// what I tested
IList theList = (IList)Ob;
Console.WriteLine(theList.ToArray()); // compiler error `IList` has not a method called ToArray
}
}
how can I convert the object
to a array. when the object is a IList