asdf
asdf
CC#
Created by Tempest on 2/23/2025 in #help
How to tell if a variable is a reference or value data type
Also Int128/UInt128
25 replies
CC#
Created by Faker on 2/15/2025 in #help
✅ StringBuilder in C#
String is like char[] (but immutable). String builder is like List<char>
33 replies
CC#
Created by YetAnohterOne on 2/6/2025 in #help
CA1860: Avoid using 'Enumerable.Any()' extension method
What exactly do you mean by undefined behavior
59 replies
CC#
Created by Faker on 1/26/2025 in #help
Deference and Reference in C#
For collections use SequenceEqual
68 replies
CC#
Created by Faker on 1/26/2025 in #help
Deference and Reference in C#
For strings it's fine, it's pretty random if == is eq by value or ref
68 replies
CC#
Created by Faker on 1/18/2025 in #help
✅ Taking user input using Console.ReadLine()
I think a better Console.ReadLine API would just throw an EndOfStream exception
44 replies
CC#
Created by Faker on 1/18/2025 in #help
✅ Taking user input using Console.ReadLine()
Though it's pretty rare so for a basic it CLI you can just ignore it by adding a ! Console.ReadLine()!
44 replies
CC#
Created by Faker on 1/18/2025 in #help
✅ Taking user input using Console.ReadLine()
The function returns null if stdin is closed
44 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
What is your use case
218 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
Just do this
218 replies
CC#
Created by glacinefrox on 12/25/2024 in #help
✅ c# websocket i want to disable utf8 validation on `WebSocketMessageType.Text`
Why does the string have special characters that are invalid utf-8
63 replies
CC#
Created by glacinefrox on 12/25/2024 in #help
✅ c# websocket i want to disable utf8 validation on `WebSocketMessageType.Text`
Send it as binary then
63 replies
CC#
Created by Kiriox on 12/22/2024 in #help
Downloading large file
You could make sure the whole buffer is filled before writing it to the file
69 replies
CC#
Created by Kiriox on 12/22/2024 in #help
Downloading large file
How is that relevant, it should just potentially increase performance
69 replies
CC#
Created by Gax on 12/22/2024 in #help
Deleting an entity with a many-to-many relationship throws an ArgumentNullException
Memory type already exists in the standard library so you might want to rename it
46 replies
CC#
Created by Kushiwushi on 12/13/2024 in #help
Ending of curly braces results in an error?
Btw you should reuse http client
13 replies
DIAdiscord.js - Imagine an app
Created by asdf on 8/15/2023 in #djs-questions
how can I load commands dynamically without require
So I just followed the tutorial in the website so what should I do to import modules that require import and don't work with require()
16 replies