C# Class Adf.Business.ValueObject.FileName

Class representing the value object File.
Datei anzeigen Open project: NLADP/ADF Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
IsValidFileName ( string newValue ) : bool

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

Method Details

CompareTo() public method

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

Equals() public method

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

FileName() public method

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.
return System

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 FileName object.
public static New ( ) : FileName
return FileName

New() public static method

Creates a new empty FileName object using the specified value.
public static New ( string value ) : FileName
value string The supplied value.
return FileName

ToString() public method

Returns the fully qualified type name of this instance.
public ToString ( ) : string
return string

TryParse() public static method

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.
return bool

TryParse() public static method

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

operator() public static method

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