andros_rex@lemmy.world to Trans Memes@lemmy.blahaj.zone · 2 months agoprivate String gender;lemmy.world315427
535private String gender;lemmy.worldandros_rex@lemmy.world to Trans Memes@lemmy.blahaj.zone · 2 months ago31
Show ContentCaveman@lemmy.world3·2 months agoThe MS style guide, which most C# code follows, says so. https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/identifier-names#pascal-case I personally hate it and I prefer the java/js style. The braces are also horrible. Here’s an example. public class ExampleEvents { public bool IsValid; public IWorkerQueue WorkerQueue { get; init; } public event Action EventProcessing; public void StartEventProcessing() { static int CountQueueItems() => WorkerQueue.Count; // ... } }
Idk C#, could you explain?
The MS style guide, which most C# code follows, says so.
https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/identifier-names#pascal-case
I personally hate it and I prefer the java/js style. The braces are also horrible. Here’s an example.
public class ExampleEvents { public bool IsValid; public IWorkerQueue WorkerQueue { get; init; } public event Action EventProcessing; public void StartEventProcessing() { static int CountQueueItems() => WorkerQueue.Count; // ... } }