C# Class Adf.Business.ValueObject.Sofinummer

Datei anzeigen Open project: NLADP/ADF Class Usage Examples

Public Methods

Method Description
CompareTo ( object obj ) : int

Compares an Sofinummer 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 ( ) : Sofinummer

Creates a new empty Sofinummer object.

New ( string value ) : Sofinummer

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

Sofinummer ( string newvalue ) : System

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

If the social-fiscal 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, Sofinummer &result ) : bool
TryParse ( string s, Sofinummer &result ) : bool

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

operator ( ) : bool

Returns the inequality of the two supplied Sofinummers.

Private Methods

Method Description
ElfProefSofi ( string sofiNr ) : bool

Indicates whether the supplied value is a valid Sofinummer or not.

IsValidSofinummer ( string newvalue ) : bool

Checks whether the supplied value is a valid Sofinummer or not.

Method Details

CompareTo() public method

Compares an Sofinummer 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 Sofinummer object.
public static New ( ) : Sofinummer
return Sofinummer

New() public static method

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

Sofinummer() public method

Initializes a new instance of the Sofinummer with the supplied value.
If the social-fiscal number could not be validated, a FormatException exception is thrown.
public Sofinummer ( 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, Sofinummer &result ) : bool
s string
provider IFormatProvider
result Sofinummer
return bool

TryParse() public static method

Tries to parse the supplied string into the supplied Sofinummer object.
public static TryParse ( string s, Sofinummer &result ) : bool
s string The string to parse.
result Sofinummer The object.
return bool

operator() public static method

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