July, 2008

Posts
  • Matthew Manela's Blog

    Foreach is Duck Typed!

    • 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...
Page 1 of 1 (1 items)