I'm trying to understand int.TryParse
to check if the user inputted the correct thing (in this case an int) but unsure what to type in after out
.
Console.WriteLine("write a number into the console");
int thisnumber = Convert.ToInt32(Console.ReadLine()); // this line is converting user inputs string into a int number.
if (!int.TryParse(thisnumber, out ))
{
Console.WriteLine("Not an integer");
}
else
{
Console.WriteLine("this is a integer");
}