You need to declare myid
as int
before you pass it to int.TryParse
int myid;
string input = Console.ReadLine();
bool isString = int.TryParse(input, out myid);
0
solved int.TryParse failing with Console.ReadLine() in C#
You need to declare myid
as int
before you pass it to int.TryParse
int myid;
string input = Console.ReadLine();
bool isString = int.TryParse(input, out myid);
0
solved int.TryParse failing with Console.ReadLine() in C#