In picture :

How does AsEnumerable Methods Knows that the type should be DataRow ?
I've searched in Reflector and Datatable does Not implement IEnumerable..
And the AsEnumerable code is:
public static IEnumerable<TSource> AsEnumerable<TSource>(this IEnumerable<TSource> source)
{
return source;
}
What am I missing ?
You're looking at the wrong AsEnumerable method - you're calling DataTableExtensions.AsEnumerable. rather than Enumerable.AsEnumerable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With