yield retrun a collection
I would like to yield a collection.
yield "select one:";
Thanks for taking the time to share this suggestion. This item has been around for a couple of versions of Visual Studio and we haven’t acted on it. Looking at the VS “15” plans, we’re not going to take action on this item, so we’re going to close it. If the suggestion is still relevant, please either take a look to see if there’s another suggestion that’s similar that you can vote on, or open a new suggestion.
- The Visual Studio Team
They dont want to hear us. So this site should been closed same like this suggestion
yes, it would be nice addition
I like this syntax:
yield foreach myList;
like described here:
Нечитайло Олег commented
F# already has this feature ( yield! ), and, of course, C# MUST support flattening.
This would be great, except that it's super easy to write slow code this way, unless C# were to support "flattening": http://loyc-etc.blogspot.com/2010/06/c-stream-flattening.html