2a2e3c0b-0e23-4992-bf19-66db2739e377 true (localdb)\mssqllocaldb tempdb Dapper MiniExcel Newtonsoft.Json System.Data.SqlClient MiniExcelLibs Newtonsoft.Json Dapper System.Data System.Diagnostics System.Linq.Expressions System.Text System.Text.RegularExpressions System.Threading System.Transactions System.Xml System.Xml.Linq System.Xml.XPath void Main() { object d = new List() {1,2}; Console.WriteLine(d is IEnumerable); //True Console.WriteLine(d is Enumerable); //False Console.WriteLine(d is IEnumerable); //false Console.WriteLine(d is IEnumerable); //True Console.WriteLine(d as IEnumerable); //OK Console.WriteLine(d as IEnumerable); //null { var rows0 = Connection.Query("select 1 id union all select 2"); //List Console.WriteLine(Check(rows0)); //object var rows1 = Connection.Query("select 1 id union all select 2").ToList(); //List Console.WriteLine(Check(rows1)); //object } } // You can define other methods, fields, classes and namespaces here public Type Check(IEnumerable e) { return typeof(T ); }