Browse by Tags

Foreach is Duck Typed!
22 July 08 10:04 AM | MattManela | 5 Comments   
I thought I know how the foreach construct worked under the covers. I figured the compiler would check if the type being iterated over implement IEnumerable or IEnumerator. And if so it will call MoveNext and Current to loop over the elements. But then Read More...
Filed under: , ,
Page view tracker