Content deleted Content added
Akeosnhaoe (talk | contribs) |
m Fixing the ___location of periods / full stops |
||
Line 420:
===C#===
An example C# 2.0 generator (the <code>yield</code> is available since C# version 2.0):
Both of these examples utilize generics, but this is not required. yield keyword also helps in implementing custom stateful iterations over a collection as discussed in this discussion.<ref>{{Cite web|url=https://stackoverflow.com/a/15977474 |title=What is the yield keyword used for in C#?|website=stackoverflow.com|access-date=2018-01-01}}</ref>
<syntaxhighlight lang="csharp">
|