C# Class Adf.Business.ValueObject.Postcode

Class representing the value object Postcode.
Datei anzeigen Open project: NLADP/ADF Class Usage Examples

Public Methods

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

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

Equals() public method

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

New() public static method

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

Postcode() public method

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.
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, Postcode &result ) : bool
s string
provider IFormatProvider
result Postcode
return bool

TryParse() public static method

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

operator() public static method

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