c# check isnumeric code example Example: is number c# var isNumeric = int.TryParse("123", out int n);