docs
docs copied to clipboard
Yield in other things than LINQ and foreach
If I understand correctly the 'yield' can be used in any iterator, but the second paragraph of Remarks makes it sound like foreach or LINQ are the only places. Maybe change "is consumed" to "can be consumed"
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 65ee1728-8dda-5659-8a20-d1c62a1d2968
- Version Independent ID: 83f7821d-22ad-54eb-33c6-aed24c7e2f4d
- Content: yield contextual keyword - C# Reference
- Content Source: docs/csharp/language-reference/keywords/yield.md
- Product: dotnet-csharp
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn