Email

Field: static readonly Email Empty

Empty email information.


Method: static Email Parse(String)

Creates Email object with email information of type string

    Email email = Email.Parse("info@company.com");
Parameter Name Description
emailString string type email value

Error Type: ArgumentNullException (This error is thrown if the value is set null.)


Property: string Local

Returns the local information prior to the "@" sign of the data.


Property: string Domain

Returns the domain information after the "@" sign of the data.


Property: string Value

Returns the value as a string.


Method: string ToString()

Returns the value as a string.


Method: object Clone()

It creates and returns a new instance with local and domain data held in the string type of the instance.


Method: bool Equals(Object)

Returns true if the given object has the same value as the Email object and the data, false otherwise.

Parameter Name Description
obj Object to be compared

Method: bool Equals(Email)

Returns true if the given Email object has the same value as the data, false otherwise.

Parameter Name Description
other The object of type Email to be compared