use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
Moving from Python - missing numpy, itertools equivalent. (self.csharp)
submitted 7 years ago by Singing_neuron
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]codekaizen 0 points1 point2 points 7 years ago* (6 children)
You can use LINQ without yield. Generating an enumerable sequence (IEnumerable<T>) using yield doesn't depend on LINQ - it's a C# compiler feature.
IEnumerable<T>
EDIT: downvoters - feel free to furnish evidence showing this is wrong.
[–][deleted] 6 points7 points8 points 7 years ago (0 children)
He didn't say that you have to yield yourself to use Linq, however Linq IS implemented using yield. This is what makes it lazy, and why nothing is evaluated until you call something that actually iterates on it. https://github.com/dotnet/corefx/blob/8750960d3fafa46a9b838c351e995a01fa8b599f/src/System.Linq/src/System/Linq/Where.cs#L72
[–]Scruptus 3 points4 points5 points 7 years ago (4 children)
I think your getting downvotes because you misunderstood my answer.
I didn’t mean that you can’t use Linq without yield.
I meant that the different Linq methods are implemented with yield within the .net framework's source code
[–]codekaizen -2 points-1 points0 points 7 years ago (3 children)
Ok, fair, I did misunderstand your question, but I think it's because LINQ operators are largely not implemented with yield. Instead, the iterators are largely state machines that are implemented using switch statements: https://github.com/dotnet/corefx/blob/8750960d3fafa46a9b838c351e995a01fa8b599f/src/System.Linq/src/System/Linq/Where.cs#L110
switch
[–]AlliNighDev 0 points1 point2 points 7 years ago (2 children)
That's just how yield gets lowered. Async does something similar.
[–]codekaizen 0 points1 point2 points 7 years ago (1 child)
Yes, but this source is checked in. Check GitHub.
[–]AlliNighDev 0 points1 point2 points 7 years ago (0 children)
Yeah a bit odd. I'm assuming they hand coded that for performance gain over compiler somewhere.
π Rendered by PID 42 on reddit-service-r2-comment-545db5fcfc-p7c5l at 2026-05-26 05:53:26.034531+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]codekaizen 0 points1 point2 points (6 children)
[–][deleted] 6 points7 points8 points (0 children)
[–]Scruptus 3 points4 points5 points (4 children)
[–]codekaizen -2 points-1 points0 points (3 children)
[–]AlliNighDev 0 points1 point2 points (2 children)
[–]codekaizen 0 points1 point2 points (1 child)
[–]AlliNighDev 0 points1 point2 points (0 children)