3 ms·
IEnumerable<T> was in the 2.0 release - it's generic, there were no generics in 1.0 But the non-generic IEnumerable and foreach syntax was in from 1.0 https://
by SideburnsOfDoom 4y ago
IEnumerable<T> was in the 2.0 release - it's generic, there were no generics in 1.0
But the non-generic IEnumerable and foreach syntax was in from 1.0 https://docs.microsoft.com/en-us/dotnet/api/system.collections.ienumerable https://docs.microsoft.com/en-us/dotnet/api/system.collectio...
"Yield return" generators is also from 2.0
- steve_taylor 4y agoYeah, OK. I was wrong about IEnumerable, although the original post is also about the features that make IEnumerable great, such as yield return.