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

Class representing the value object File.
Показать файл Открыть проект Примеры использования класса

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

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

Compares an FileName to the supplied object.

Equals ( object obj ) : bool

Compares this instance to another FileName object.

FileName ( string newvalue ) : System

Initializes a new instance of the FileName.

If the filename could not be validated, a FormatException exception is thrown.

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 ( ) : FileName

Creates a new empty FileName object.

New ( string value ) : FileName

Creates a new empty FileName object using the specified value.

ToString ( ) : string

Returns the fully qualified type name of this instance.

TryParse ( string s, FileName &result ) : bool

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

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

Returns the inequality of two FileName objects.

Приватные методы

Метод Описание
IsValidFileName ( string newValue ) : bool

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

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

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

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

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

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

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

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

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 FileName object.
public static New ( ) : FileName
Результат FileName

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

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

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

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

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

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

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

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

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

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