Reddit » C# programming language
2,341 FOLLOWERS
Reddit is a network of communities based on people's interests. All about the object-oriented programming language C# can be found in the subreddit. Come and discuss your side projects with others, ask for advice and reviews. Ask for help with programming and share or exchange your C# skills.
Reddit » C# programming language
3h ago
Im a newbie and I didnt go to college for CS. I just selftaught for my hobby, want to know should I learn C# for BE and C# beacuse it can use for multi work. Should I dive to learn C# or learn other one. Please advise me. I already learn a bit about python, js, and C/C++ on CS50 course.
submitted by /u/nguyendai666
[visit reddit] [comments ..read more
Reddit » C# programming language
3h ago
Hello
I'm currently using a MacOS device, and I want to know what tool I can use to perform memory profiling similar to the one available on Visual Studio for Windows. I'm not interested in using Parallels to run Windows 11 and Visual Studio, as I'm trying to make my development workflow entirely on Mac.
Thank you in advance for your help!
submitted by /u/skg-dev
[visit reddit] [comments ..read more
Reddit » C# programming language
10h ago
I've been practicing making small websites/ remaking ones that have already been made so I can understand the basics. However, I'm stumped on how people figure out new original Ideas when creating a website. Personally, how do you come up with ideas?
submitted by /u/Downtown-Western-609
[visit reddit] [comments ..read more
Reddit » C# programming language
10h ago
SDK projects don't want to reference legacy SOAP web services. I've been told a csproj will allow that, but not sure how to add one to the solution.
submitted by /u/LettuceBeHappy3
[visit reddit] [comments ..read more
Reddit » C# programming language
10h ago
I have literally been waiting for about like 45 minutes for it to install and its only at 62%. I have a good internet connection. Anyone know what I can do to speed this up?
Edit: Ok its finally done
submitted by /u/ILikeGayMidgets
[visit reddit] [comments ..read more
Reddit » C# programming language
10h ago
So I tried to test how different data types affect performance.
To do so I created 2 byte arrays, 2 short arrays, 2 int arrays and 2 long arrays.
I then added one array to the next. For example:
for(int i = 0; i < arraySize; i++) byteArray2[i] += byteArray1[i]
etc...
I timed each one, and got the weirdest results on iOS using IL2CPP.
byte is 25% slower than int, which makes sense because it needs to be copied to a register to zero out the high bits.
short is 10x faster than int!
long is 4x faster than int!
Can anyone tell me why operations involving short and long are so fast on iOS?
On ..read more
Reddit » C# programming language
10h ago
public bool isSaved; private void Awake() { DontDestroyOnLoad(this.gameObject); isSaved = false; } public void SaveGame() { isSaved = true; if (isSaved == true) { sceneName = SceneManager.GetActiveScene().name; isSaved = false; } }
It gets active scene even when I don't press Save (SaveGame) when I change scene.
Can anyone help me out?
submitted by /u/Actual_Attention4812
[visit reddit] [comments ..read more
Reddit » C# programming language
17h ago
I have been fighting with this for awhile now. Schoolstuff and im stuck....don't know why this wont work.
So can someone help me what is wrong with this?
Example output: 1
12
123
1234
12345
123456
1234567
12345678
123456789
12345678910
1234567891011
123456789101112
My code:
using System;
class MainClass { static void Main(string[] args) { int n = 12; // for (int i = 1; i <= n; i++) { string line =""; for (int j = 1; j <= i; j++) { line += j +""; } Console.WriteLine(line); } } }
And error: Incorrect output: your program printed "112", but should have printed "1 12" Expected output: 1 12 ..read more
Reddit » C# programming language
17h ago
I have a tech test for a company, mid-level c# role. It's pretty open ended, a Phonebook application with crud capabilities and an FE in Angular.
My plan is a WebApi written in a standard interface-repository-controller pattern, with entities for a User with all the properties on it they want. The entry point will be a DTO that's then mapped to the actual entity -> operations are performed -> return a response to the FE. The interface will be injected using DI I plan.
The next part is for the FE to have a option to contact the person with 3 options (phone, email, sms) which should send ..read more