Yield return and Itirators use case: another way to loop days(anastasiosyal.com)

submitted by AnastasiosyalAnastasiosyal(960) 4 years, 6 months ago

An example of how to use an enumerator to express a clearer intent of your code. The example creates an Enumarable class and illustrates the use of yield return to loop through the days given a startDate and an endDate.

1 comment |category: |Views: 6

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by AnastasiosyalAnastasiosyal(960) 4 years, 6 months ago 0

eeek - its supposed to be iterator not itirator!

Reply

information Login or create an account to comment on this story