11 Replies
Don't know, what is the problem?
i dont understand why it is highlighting Console.ReadLine(); yellow
the only thing there is a warning
it's not an error
It tells you when you mouse over it
yeah but even when there is nothing there is says there is a problem
that's just vscode being vscode
restart vsc and it'll probably be fixed
oh
but anyway, the warning itself says that the result of
Console.ReadLine()
may be null
You can solve this either by doing Console.ReadLine() ?? ""
or doing Console.ReadLine()!
The first of which is kinda the most preferableoh ok that makes sense thanks
a ?? b
essentially means "if a is not null then return a from the expression, otherwise return b"Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.