C# Class EixoX.Restrictions.Phone

Inheritance: System.Attribute, Restriction
Show file Open project: EixoX/Jetfuel-CSharp

Public Methods

Method Description
IsValid ( string value ) : bool

Checks if a given value is a valid Phone number.

Validate ( object input ) : bool

Validates an input object as a valid phone number or an empty value.

Method Details

IsValid() public static method

Checks if a given value is a valid Phone number.
public static IsValid ( string value ) : bool
value string The value to check for a valid Phone number.
return bool

Validate() public method

Validates an input object as a valid phone number or an empty value.
public Validate ( object input ) : bool
input object The input to validate.
return bool