C# Class Adf.Business.ValueObject.Email

Show file Open project: NLADP/ADF Class Usage Examples

Public Methods

Method Description
CompareTo ( object obj ) : int

Compares the current Email to the supplied object.

Email ( string newvalue ) : System

Initializes a new instance of the Email class.

If the e-mail address could not be validated, a FormatException exception is thrown.

Equals ( object obj ) : bool

Compares this instance to another object.

GetHashCode ( ) : int

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

New ( ) : Email

Creates a new empty Email object.

New ( string value ) : Email

Creates a new empty Email object using the specified initial e-mail address.

ToString ( ) : string

Returns a string that represents the current Email.

TryParse ( string s, Email &result ) : bool

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

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

Returns the inequality of two Email objects.

Method Details

CompareTo() public method

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

Email() public method

Initializes a new instance of the Email class.
If the e-mail address could not be validated, a FormatException exception is thrown.
public Email ( string newvalue ) : System
newvalue string The e-mail address to use.
return System

Equals() public method

Compares this instance to another object.
public Equals ( object obj ) : bool
obj object The object to compare against.
return bool

GetHashCode() public method

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public GetHashCode ( ) : int
return int

New() public static method

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

New() public static method

Creates a new empty Email object using the specified initial e-mail address.
public static New ( string value ) : Email
value string The initial e-mail address.
return Email

ToString() public method

Returns a string that represents the current Email.
public ToString ( ) : string
return string

TryParse() public static method

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

TryParse() public static method

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

operator() public static method

Returns the inequality of two Email objects.
public static operator ( ) : bool
return bool