






ageInput is null
string? ageInput
? next to string simply converts it to a nullable string
varnull you can also use int.TryParse(value,out int output) , for more info refer to the official documentation
Console.WriteLine("hey");
ageInputstring? ageInputvarc#
int age = int.Parse(Console.ReadLine());int.TryParse(value,out int output)Console.WriteLine("hey");c#
string x = "some text \n new line will start from here \n and another line" ;string? ageInput = Console.ReadLine();
if(ageInput is null)
{
// handle no age input
}