MODiX
MODiX
CC#
Created by Jiry_XD on 10/21/2024 in #help
How to prevent nulls using this approach for Object Initializers?
13 replies
CC#
Created by packetphysicist on 10/21/2024 in #help
✅ Unclear file structure
If you have no further questions, please use /close to mark the forum thread as answered
31 replies
CC#
Created by Yasu on 10/20/2024 in #help
Can anyone help me switch my primary key column from int to uniqueidentifier for my web app?
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code! (see $code for more information on how to paste your code)
7 replies
CC#
Created by Saiyanslayer on 10/19/2024 in #help
How to find and update a record in a recursive model?
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code! (see $code for more information on how to paste your code)
16 replies
CC#
Created by Bepis on 10/19/2024 in #help
Is there a faster way of splitting strings?
30 replies
CC#
Created by Soul of ??? on 10/18/2024 in #help
Good Apps to Help With Studying for Mobile Users?
If you have no further questions, please use /close to mark the forum thread as answered
6 replies
CC#
Created by ξQuentξ on 10/18/2024 in #help
I have a problem with the reloading of the text editor.
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
5 replies
CC#
Created by workani on 10/18/2024 in #help
✅ Do I always need to avoid coupling?
Traditionally in C#, the main entry point of any program would be a static Main method (see $mains):
public static class Program
{
public static void Main()
{
Console.WriteLine("Hello, world!");
}
}
public static class Program
{
public static void Main()
{
Console.WriteLine("Hello, world!");
}
}
In C# 9, a feature called top-level statements was added which allows the static Main method to be omitted in favor of brevity and simplicity, and in C# 10, this was made part of the default console application template:
Console.WriteLine("Hello, world!");
Console.WriteLine("Hello, world!");
If you are following a tutorial or example code and your default template looks different, you can still write the exact same code as if you were writing it inside the static Main method. In addition, you can still write static methods inside top-level code. You can however not use top-level code in more than one file. If you wish to use the old traditional entry point, you can still use a Program class with a static Main method. https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/program-structure/top-level-statements
32 replies
CC#
Created by workani on 10/18/2024 in #help
✅ Do I always need to avoid coupling?
$toplevelcode
32 replies
CC#
Created by UnemployedNinja on 10/18/2024 in #help
Best way to deserialize duplicate JSON API responses (Using Newtonsoft.JSON)
If you have no further questions, please use /close to mark the forum thread as answered
73 replies
CC#
Created by toon link on crack on 10/18/2024 in #help
The Given key was not present in the dictionary
9 replies
CC#
Created by toon link on crack on 10/18/2024 in #help
The Given key was not present in the dictionary
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat For longer snippets, use: https://paste.mod.gg/
9 replies
CC#
Created by 🐟😣 on 10/17/2024 in #help
✅ My program can’t be run.
Follow the instructions here on getting started with DevKit for C# in VSCode: https://code.visualstudio.com/docs/csharp/get-started
40 replies
CC#
Created by SamPerson on 10/17/2024 in #help
Named function magically turns into anonymous method for no clear reason, cannot be used as Action
26 replies
CC#
Created by xyrile on 10/17/2024 in #help
✅ Can someone check if my authorization or authentication is good or bad
If you have no further questions, please use /close to mark the forum thread as answered
10 replies
CC#
Created by vendeten on 10/17/2024 in #help
having problems with random number generator in uni project
65 replies
CC#
Created by vendeten on 10/17/2024 in #help
having problems with random number generator in uni project
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
65 replies