System.Utilities.Validation.IsValidPhoneNumber C# (CSharp) Method

IsValidPhoneNumber() public static method

Tests whether input string is a valid phone number.
public static IsValidPhoneNumber ( string PhoneNumber ) : bool
PhoneNumber string Phone number to test.
return bool
        public static bool IsValidPhoneNumber(string PhoneNumber)
        {
            return MatchPhone1.IsMatch(PhoneNumber) || MatchPhone2.IsMatch(PhoneNumber);
        }