C# Класс Adf.Business.ValueObject.Email

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

CompareTo() публичный Метод

Compares the current Email to the supplied object.
public CompareTo ( object obj ) : int
obj object The object to compare to.
Результат int

Email() публичный Метод

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.
Результат System

Equals() публичный Метод

Compares this instance to another object.
public Equals ( object obj ) : bool
obj object The object to compare against.
Результат bool

GetHashCode() публичный Метод

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
Результат int

New() публичный статический Метод

Creates a new empty Email object.
public static New ( ) : Email
Результат Email

New() публичный статический Метод

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.
Результат Email

ToString() публичный Метод

Returns a string that represents the current Email.
public ToString ( ) : string
Результат string

TryParse() публичный статический Метод

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.
Результат bool

TryParse() публичный статический Метод

public static TryParse ( string s, IFormatProvider provider, Email &result ) : bool
s string
provider IFormatProvider
result Email
Результат bool

operator() публичный статический Метод

Returns the inequality of two Email objects.
public static operator ( ) : bool
Результат bool