check if entered number is a integer c# code example Example: verify if number c# var isNumeric = int.TryParse("123", out int n);