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