Warning issues that i doesnt know what's the problem
Did someone know what is the warning want to tell me? i'm confused.
also this project made for fun only. Thank YOU!
3 Replies
Console.ReadLine()
can return null
in rare cases
Just use a fallback
for example
Also, no need to declare variables before assignment
Just do both at the same timeI know but I like that way because it's comfortable to see
can u explain what ' ?? " "; ' do?
?? and ??= operators - null-coalescing operators - C#
The
??
and ??=
operators are the C# null-coalescing operators. They return the value of the left-hand operand if it isn't null. Otherwise, they return the value of the right-hand operand