CoRoys
CoRoys
CC#
Created by accel on 8/9/2024 in #help
help me learn
Anyways, for starters, avoid WinForms and learn WPF as a starting point instead
27 replies
CC#
Created by accel on 8/9/2024 in #help
help me learn
Having your "own personal" tutor here is a bit of a stretch tbh
27 replies
CC#
Created by accel on 8/9/2024 in #help
help me learn
We could give resources on where and how to start, things to avoid, and explain things you can't figure out on your own
27 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
You don't wanna replace though
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
This question can be answered by a quick Google search
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
Next time just use var
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
You're basically matching your variable type with the return type of the ReadLine function, hence disabling the warning
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
No description
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
The ? next to string simply converts it to a nullable string
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
You should convert the string to an int after you've checked that the string is not null in the first place
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
This will just output zero if no age was found
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
string? ageInput = Console.ReadLine();

if(ageInput is null)
{

// handle no age input

}
string? ageInput = Console.ReadLine();

if(ageInput is null)
{

// handle no age input

}
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
You can still compile and build, but the code analysis is telling you that you should handle the case when ageInput is null
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
That means you'll get feedback on where Intellisense (i.e code analysis) thinks a null reference exception might happen
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
C# supports nullability analysis
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
No need to pressure yourself into the dotnet command line right now
55 replies
CC#
Created by Crunchy on 7/28/2024 in #help
✅ how to start
Download VS Studio and create a project from a template
55 replies
CC#
Created by Kingdawanage on 2/24/2024 in #help
Elements of my child view do not show on my main view
If XAML confuses you just set it in the code behind no questions asked
98 replies
CC#
Created by Kingdawanage on 2/24/2024 in #help
Elements of my child view do not show on my main view
Instead of locking the data context behind a single view, you can use DI to inject it as a singleton to any view at any time
98 replies
CC#
Created by Kingdawanage on 2/24/2024 in #help
Elements of my child view do not show on my main view
Is your data shared between states?
98 replies