Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. MSDN Magazine April 2017: good article by Michaelis on Enumerators/Iterators

MSDN Magazine April 2017: good article by Michaelis on Enumerators/Iterators

Scheduled Pinned Locked Moved The Insider News
csharpdelphicomquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BillWoodruff
    wrote on last edited by
    #1

    "Essential .NET - Understanding C# foreach Internals and Custom Iterators with yield" [^]

    Quote:

    For exam­ple, are you aware that foreach works differently for arrays than on IEnumberable collections? How familiar are you with the relationship between IEnumerable and IEnumerator? And, if you do understand the enumerable interfaces, are you comfortable implementing them using yield?

    «When I consider my brief span of life, swallowed up in an eternity before and after, the little space I fill, and even can see, engulfed in the infinite immensity of spaces of which I am ignorant, and which know me not, I am frightened, and am astonished at being here rather than there; for there is no reason why here rather than there, now rather than then.» Blaise Pascal

    L 1 Reply Last reply
    0
    • B BillWoodruff

      "Essential .NET - Understanding C# foreach Internals and Custom Iterators with yield" [^]

      Quote:

      For exam­ple, are you aware that foreach works differently for arrays than on IEnumberable collections? How familiar are you with the relationship between IEnumerable and IEnumerator? And, if you do understand the enumerable interfaces, are you comfortable implementing them using yield?

      «When I consider my brief span of life, swallowed up in an eternity before and after, the little space I fill, and even can see, engulfed in the infinite immensity of spaces of which I am ignorant, and which know me not, I am frightened, and am astonished at being here rather than there; for there is no reason why here rather than there, now rather than then.» Blaise Pascal

      L Offline
      L Offline
      ledtech3
      wrote on last edited by
      #2

      That seems a bit over complicated. Defiantly so for anything I have ever done.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups