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

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

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

Метод Описание
CompareTo ( object obj ) : int

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

Creates a new empty PhoneNumber object.

New ( string value ) : PhoneNumber

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

PhoneNumber ( string newvalue ) : System

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

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

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

operator ( ) : bool

Returns the inequality of the two supplied PhoneNumbers.

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

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

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

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

Checks whether this instance is equal to the supplied object.
public Equals ( object obj ) : bool
obj object The object to compare against.
Результат bool

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

Returns the hash code for this instance.
public GetHashCode ( ) : int
Результат int

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

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

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

Creates and returns a new empty PhoneNumber object using the specified value.
public static New ( string value ) : PhoneNumber
value string The supplied value.
Результат PhoneNumber

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

Initializes a new instance of the PhoneNumber with the supplied value.
If the phone number could not be validated, a FormatException exception is thrown.
public PhoneNumber ( string newvalue ) : System
newvalue string The value to use.
Результат System

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

Returns the fully qualified type name of this instance.
public ToString ( ) : string
Результат string

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

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

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

Tries to parse the supplied string into the supplied PhoneNumber object.
public static TryParse ( string s, PhoneNumber &result ) : bool
s string The string to parse.
result PhoneNumber The object.
Результат bool

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

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