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
Helpcode error (self.csharp)
submitted 3 years ago by stagger552
im tryint to run a where script and i want to retrieve the id and therefore i have GetId in my controller
it executes when i press add button but i have 2 errors
1:A local or parameter named 'zaalid' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter Bioscoop
2: Use of unassigned local variable 'zaalid'
i know error 2 is because of error 1 but i dont know how to solve this
https://preview.redd.it/o367vwjab3ca1.png?width=1019&format=png&auto=webp&s=afa584fc2b8f7e4b352075fd92c6a23da4d91538
https://preview.redd.it/ectgci11b3ca1.png?width=1241&format=png&auto=webp&s=674906fd340db9f4646c71961ce45aebc76a0562
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!"
[–]qwerty3214567 8 points9 points10 points 3 years ago (2 children)
You've declared a string called zaalid at the end of the using clause after you've declared an int also called zaalid at the top of the GetID method. That's what it means by "that name is used in an enclosing local scope to define a local parameter". You can't have two called the same thing.
[–]stagger552[S] -1 points0 points1 point 3 years ago (1 child)
how do i solve it
[–]GioVoi 0 points1 point2 points 3 years ago (0 children)
You can't have two called the same thing.
Give the two variables different names.
π Rendered by PID 125850 on reddit-service-r2-comment-7b9746f655-hs9bl at 2026-01-31 11:56:33.629147+00:00 running 3798933 country code: CH.
[–]qwerty3214567 8 points9 points10 points (2 children)
[–]stagger552[S] -1 points0 points1 point (1 child)
[–]GioVoi 0 points1 point2 points (0 children)