C# Class Adf.Business.ValueObject.PhoneNumber

Datei anzeigen Open project: NLADP/ADF Class Usage Examples

Public Methods

Method 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 method

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

Equals() public method

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

GetHashCode() public method

Returns the hash code for this instance.
public GetHashCode ( ) : int
return int

New() public static method

Creates a new empty PhoneNumber object.
public static New ( ) : PhoneNumber
return PhoneNumber

New() public static method

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

PhoneNumber() public method

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.
return System

ToString() public method

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

TryParse() public static method

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

TryParse() public static method

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.
return bool

operator() public static method

Returns the inequality of the two supplied PhoneNumbers.
public static operator ( ) : bool
return bool