Jimmacle
Jimmacle
CC#
Created by Rodonies on 1/23/2025 in #help
Dependency Injection Logging: AddDebug() works but AddSerilog() doesn't.
e.g. loggerConfig.WriteTo.Debug();
5 replies
CC#
Created by Rodonies on 1/23/2025 in #help
Dependency Injection Logging: AddDebug() works but AddSerilog() doesn't.
it seems wrong that you're trying to add 2 different logging services, if you want logging to the debug console that should be configured as a serilog sink and not as a separate logging service
5 replies
CC#
Created by TIGRIIII on 1/21/2025 in #help
I need to consult about this code!
this will not call the setter for UserName
41 replies
CC#
Created by TIGRIIII on 1/21/2025 in #help
I need to consult about this code!
in your constructor you're setting _userName not UserName
41 replies
CC#
Created by TIGRIIII on 1/21/2025 in #help
I need to consult about this code!
it's about keeping responsibilities separate, your customer class doesn't have a good reason to know anything about the console
41 replies
CC#
Created by TIGRIIII on 1/21/2025 in #help
I need to consult about this code!
if i wanted to stop username from being set to an empty/null string i would check it and throw an exception if it's invalid
41 replies
CC#
Created by TIGRIIII on 1/21/2025 in #help
I need to consult about this code!
but i also would not put this code in a setter, setters should be pretty simple validation and not do anything extra like printing
41 replies
CC#
Created by TIGRIIII on 1/21/2025 in #help
I need to consult about this code!
well, you never actually use the setter
41 replies
CC#
Created by GingerSniper10 on 1/20/2025 in #help
Realistic AR Hair Filters
what's a hair filter? what needs to be ultra realistic? is this for a game, photo editing, something entirely different?
11 replies
CC#
Created by GingerSniper10 on 1/20/2025 in #help
Realistic AR Hair Filters
there is a lot of detail you need to provide before anyone can get near answering your question
11 replies
CC#
Created by monkeyoohlala on 1/20/2025 in #help
✅ Error when loading due to norton antivirus
antivirus software is a scam anyway, defender is all you actually need
23 replies
CC#
Created by monkeyoohlala on 1/20/2025 in #help
✅ Error when loading due to norton antivirus
it's probably falsely identifying your program as a virus
23 replies
CC#
Created by monkeyoohlala on 1/20/2025 in #help
✅ Error when loading due to norton antivirus
so get rid of norton
23 replies
CC#
Created by black monkey9 on 1/20/2025 in #help
✅ Please help teach me C sharp
if you have specific questions we can do more
7 replies
CC#
Created by black monkey9 on 1/20/2025 in #help
✅ Please help teach me C sharp
we can't help with such a general ask
7 replies
CC#
Created by JavierWGI on 1/16/2025 in #help
Database in C#
i can tell you that you can definitely access databases in modern .NET
17 replies
CC#
Created by JavierWGI on 1/16/2025 in #help
Database in C#
it's an older version than the ones that are just called .NET
17 replies
CC#
Created by JavierWGI on 1/16/2025 in #help
Database in C#
you should not be using .NET Framework for new projects
17 replies
CC#
Created by Faker on 1/16/2025 in #help
{} vs [] when initializing an array in C#
it doesn't really matter, but if you want to be consistent then the newer syntax can be used in more places
6 replies
CC#
Created by Faker on 1/16/2025 in #help
{} vs [] when initializing an array in C#
the [] way can be used with lists and other collection types as well
6 replies