C# Class TVSorter.Wrappers.FileInfoWrap

Wrapper for the FileInfo class.
Inheritance: IFileInfo
Afficher le fichier Open project: a-jackson/tvsorter Class Usage Examples

Méthodes publiques

Méthode Description
CopyTo ( string destFileName ) : IFileInfo

Copies the file to the specified location.

Delete ( ) : void

Deletes the file.

FileInfoWrap ( FileInfo fileInfo ) : System.IO

Initializes a new instance of the FileInfoWrap class.

FileInfoWrap ( string fileName ) : System.IO

Initializes a new instance of the FileInfoWrap class.

MoveTo ( string destFileName ) : void

Moves the file to the specfied location.

ToString ( ) : string

Returns a string that represents the current object.

WriteAllText ( string text ) : void

Writes all the specified text into the file, creating it if it doesn't exist.

Private Methods

Méthode Description
ConvertFileInfoToIFileInfoArray ( FileInfo fileInfos ) : IFileInfo[]

Converts a FileInfo array into an IFileInfo array.

Method Details

CopyTo() public méthode

Copies the file to the specified location.
public CopyTo ( string destFileName ) : IFileInfo
destFileName string /// The destination to copy to. ///
Résultat IFileInfo

Delete() public méthode

Deletes the file.
public Delete ( ) : void
Résultat void

FileInfoWrap() public méthode

Initializes a new instance of the FileInfoWrap class.
public FileInfoWrap ( FileInfo fileInfo ) : System.IO
fileInfo System.IO.FileInfo /// The file info. ///
Résultat System.IO

FileInfoWrap() public méthode

Initializes a new instance of the FileInfoWrap class.
public FileInfoWrap ( string fileName ) : System.IO
fileName string /// The file name. ///
Résultat System.IO

MoveTo() public méthode

Moves the file to the specfied location.
public MoveTo ( string destFileName ) : void
destFileName string /// The destination to move to. ///
Résultat void

ToString() public méthode

Returns a string that represents the current object.
public ToString ( ) : string
Résultat string

WriteAllText() public méthode

Writes all the specified text into the file, creating it if it doesn't exist.
public WriteAllText ( string text ) : void
text string /// The text to write. ///
Résultat void