Aqueduct.Extensions.Numeric.IsWholeNumber C# (CSharp) Method

IsWholeNumber() public static method

Determines whether [is whole number] [the specified s item].
public static IsWholeNumber ( this sItem ) : bool
sItem this The s item.
return bool
        public static bool IsWholeNumber(this string sItem)
        {
            Regex notWholePattern = new Regex("[^0-9]");
            return !notWholePattern.IsMatch(sItem);
        }