Why Enumerable does not inherit from IEnumerable <T>
I am very confused by this problem and cannot understand it. In the documentation, EnumerableI read the following:
which implement System.Collections.Generic.IEnumerable
and some methods, such as Select()return IEnumerable<TSource>, which we can use from other methods, such as Where()after using this. For instance:
names.Select(name => name).Where(name => name.Length > 3 );
but Enumerabledoes not inherit from IEnumerable<T>and IEnumerable<T>does not contain Select(), Where()etc. also...
I have a mistake?
or is there any reason for this?
+3
6 answers
I also said that you are reading this article Iterators, Iterator Blocks, and Data Pipelines from Jon Skeet for Further Understanding
-2