C# Class Adf.Business.ValueObject.PhoneNumber

Afficher le fichier Open project: NLADP/ADF Class Usage Examples

Méthodes publiques

Méthode Description
CompareTo ( object obj ) : int

Compares an PhoneNumber to the supplied object.

Equals ( object obj ) : bool

Checks whether this instance is equal to the supplied object.

GetHashCode ( ) : int

Returns the hash code for this instance.

New ( ) : PhoneNumber

Creates a new empty PhoneNumber object.

New ( string value ) : PhoneNumber

Creates and returns a new empty PhoneNumber object using the specified value.

PhoneNumber ( string newvalue ) : System

Initializes a new instance of the PhoneNumber with the supplied value.

If the phone number could not be validated, a FormatException exception is thrown.

ToString ( ) : string

Returns the fully qualified type name of this instance.

TryParse ( string s, IFormatProvider provider, PhoneNumber &result ) : bool
TryParse ( string s, PhoneNumber &result ) : bool

Tries to parse the supplied string into the supplied PhoneNumber object.

operator ( ) : bool

Returns the inequality of the two supplied PhoneNumbers.

Method Details

CompareTo() public méthode

Compares an PhoneNumber to the supplied object.
public CompareTo ( object obj ) : int
obj object The object to compare to.
Résultat int

Equals() public méthode

Checks whether this instance is equal to the supplied object.
public Equals ( object obj ) : bool
obj object The object to compare against.
Résultat bool

GetHashCode() public méthode

Returns the hash code for this instance.
public GetHashCode ( ) : int
Résultat int

New() public static méthode

Creates a new empty PhoneNumber object.
public static New ( ) : PhoneNumber
Résultat PhoneNumber

New() public static méthode

Creates and returns a new empty PhoneNumber object using the specified value.
public static New ( string value ) : PhoneNumber
value string The supplied value.
Résultat PhoneNumber

PhoneNumber() public méthode

Initializes a new instance of the PhoneNumber with the supplied value.
If the phone number could not be validated, a FormatException exception is thrown.
public PhoneNumber ( string newvalue ) : System
newvalue string The value to use.
Résultat System

ToString() public méthode

Returns the fully qualified type name of this instance.
public ToString ( ) : string
Résultat string

TryParse() public static méthode

public static TryParse ( string s, IFormatProvider provider, PhoneNumber &result ) : bool
s string
provider IFormatProvider
result PhoneNumber
Résultat bool

TryParse() public static méthode

Tries to parse the supplied string into the supplied PhoneNumber object.
public static TryParse ( string s, PhoneNumber &result ) : bool
s string The string to parse.
result PhoneNumber The object.
Résultat bool

operator() public static méthode

Returns the inequality of the two supplied PhoneNumbers.
public static operator ( ) : bool
Résultat bool