CS8600 Error while using the ReadLine() command

680 views Asked by At

CS8600 Error while using the ReadLine() command;

Code:

namespace Something{
 
    class UserInputEg{

        static void Main(string[] args){

            string input = Console.ReadLine();
            Console.WriteLine(input);
            Console.Read();
        }
    }
}

Error:

Converting null literal or possible null value to non-nullable type. line 7

Screenshot of the code and the warning associated with it

0

There are 0 answers