Function for Checking Numeric Value in C#Samir Bhogayta10yPublished Jun 28, 2016, 4:04 AMUpdated Jun 28, 2016, 8:05 AM830CodeThis function for checking numeric value in C#.public static bool IsNumeric(string str) { if (str == null) return false; return (System.Text.RegularExpressions.Regex.IsMatch(str, @"^\d+$")); }