[Solved] int.TryParse failing with Console.ReadLine() in C#
[ad_1] 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 [ad_2] solved int.TryParse failing with Console.ReadLine() in C#