Yield return and Itirators use case: another way to loop days(anastasiosyal.com)
submitted by
Anastasiosyal(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.
|category: C#
|Views: 6
tags:
C# another
Everyones tags:
Your Tags: