Error!
Success!

C# compiler uses Duck-Typing, not IEnumerable, for foreach loops

0
kicks

C# compiler uses Duck-Typing, not IEnumerable, for foreach loops  (Unpublished)

Turns out that according to this post, and the C# 1.0 specification, that foreach loops in C# do not use IEnumerable (as found in the documentation) but rather duck-typing. Not necessarily consequential to our every day programming lives, but interesting nonetheless.


Kicked By:
Drop Kicked By: