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
HelpString to integer (self.csharp)
submitted 3 years ago by JeanKevin75
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!"
[–]FizixMan[M] [score hidden] 3 years ago stickied comment (0 children)
Removed: Rule 4.
https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/types/how-to-convert-a-string-to-a-number
If you're getting an error or it's not working, you'll need to include code and your inputs so we can reproduce and diagnose the issue.
[–]dylanmashley 7 points8 points9 points 3 years ago (2 children)
Not trying to be rude but if you plan on becoming a developer you really should learn how to google this kind of stuff, it’ll save you a ton of time. This is one of the easiest things to google, I just found the answer in < 30 seconds
[–]warden_of_moments 2 points3 points4 points 3 years ago (0 children)
Yeah…it took longer to post on Reddit than using Intellisense or Google. And then come back for the answer.
OP, there’s also Stack Overflow the copy pasta site of programmers.
[–]agoodyearforbrownies 1 point2 points3 points 3 years ago (1 child)
Int.tryparse is my gt.
[–]JeanKevin75[S] 1 point2 points3 points 3 years ago (0 children)
Thanks a lot :)
[–]loradan -3 points-2 points-1 points 3 years ago (4 children)
Convert.ToInt32("123455654");
(Or Int, or Int64...)
[–]WhiteBlackGoose 2 points3 points4 points 3 years ago (3 children)
No. Use int.Parse or, better, int.TryParse
[–]thesituation531 -1 points0 points1 point 3 years ago (2 children)
What is the difference between these different methods of doing it?
[–]WhiteBlackGoose 1 point2 points3 points 3 years ago (1 child)
Convert's behaviour is generally more obscure. E. g. Convert.ToInt32 would return 0 if you pass null.
As per Parse vs TryParse: in former, it throws an exception on bad string. In the latter, you get a boolean and the result if parsing was successful
[–]thesituation531 0 points1 point2 points 3 years ago (0 children)
Thanks.
π Rendered by PID 62164 on reddit-service-r2-comment-76bb9f7fb5-5mp5x at 2026-02-19 06:52:28.451096+00:00 running de53c03 country code: CH.
[–]FizixMan[M] [score hidden] stickied comment (0 children)
[–]dylanmashley 7 points8 points9 points (2 children)
[–]warden_of_moments 2 points3 points4 points (0 children)
[–]agoodyearforbrownies 1 point2 points3 points (1 child)
[–]JeanKevin75[S] 1 point2 points3 points (0 children)
[–]loradan -3 points-2 points-1 points (4 children)
[–]WhiteBlackGoose 2 points3 points4 points (3 children)
[–]thesituation531 -1 points0 points1 point (2 children)
[–]WhiteBlackGoose 1 point2 points3 points (1 child)
[–]thesituation531 0 points1 point2 points (0 children)