C# Class Adf.Business.ValueObject.Postcode

Class representing the value object Postcode.
Afficher le fichier Open project: NLADP/ADF Class Usage Examples

Méthodes publiques

Méthode Description
CompareTo ( object obj ) : int

Compares an Postcode to the supplied object.

Equals ( object obj ) : bool

Checkes whether this instance is equal to the supplied object.

GetHashCode ( ) : int

Returns the hash code for this instance.

New ( ) : Postcode

Creates and returns a new empty Postcode object.

New ( string value ) : Postcode

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

Postcode ( string newvalue ) : System

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

If the postal code 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, Postcode &result ) : bool
TryParse ( string s, Postcode &result ) : bool

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

operator ( ) : bool

Returns the inequality of the two supplied Postcodes.

Method Details

CompareTo() public méthode

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

Equals() public méthode

Checkes 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 and returns a new empty Postcode object.
public static New ( ) : Postcode
Résultat Postcode

New() public static méthode

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

Postcode() public méthode

Initializes a new instance of the Postcode with the supplied value.
If the postal code could not be validated, a FormatException exception is thrown.
public Postcode ( string newvalue ) : System
newvalue string The supplied 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, Postcode &result ) : bool
s string
provider IFormatProvider
result Postcode
Résultat bool

TryParse() public static méthode

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

operator() public static méthode

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