I am making a CMD for my application, and figure I have a trouble when I check `Console.ReadLine != null``
string input = Console.ReadLine(); if(input != nu
When you hit ENTER, Console.ReadLine returns empty string. It doesn't return null. Use string.IsNullOrEmpty to check instead.
ENTER
Console.ReadLine
string
string.IsNullOrEmpty
if(!string.IsNullOrEmpty(input))
According to documentation it will return null only if you press CTRL + Z.
CTRL + Z.