AsEnumerable is converting something into something(generic or not).
There is picture below:

I wonder that how AsEnumerable converting string array to string[] but DataTable to EnumerableRowCollection<DataRow> ?
AsEnumerable is converting something into something(generic or not).
There is picture below:

I wonder that how AsEnumerable converting string array to string[] but DataTable to EnumerableRowCollection<DataRow> ?
They are different Extension methods. One is DataTableExtensions.AsEnumerable and other is Enumerable.AsEnumerable
Because both AsEnumerable are different
With String array, AsEnumerable returns IEnumerable<T>.
Refer to Enumerable.AsEnumerable
DataTable.AsEnumerable is defined in DataTableExtensions. It returns EnumerableRowCollection < DataRow >