c# if int = number code example
Example 1: is number c#
var isNumeric = int.TryParse("123", out int n);
Example 2: c# see if string is int
bool result = int.TryParse("123", out var n);
var isNumeric = int.TryParse("123", out int n);
bool result = int.TryParse("123", out var n);