C# Class TVSorter.Wrappers.FileInfoWrap

Wrapper for the FileInfo class.
Inheritance: IFileInfo
ファイルを表示 Open project: a-jackson/tvsorter Class Usage Examples

Public Methods

Method 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

Method Description
ConvertFileInfoToIFileInfoArray ( FileInfo fileInfos ) : IFileInfo[]

Converts a FileInfo array into an IFileInfo array.

Method Details

CopyTo() public method

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

Delete() public method

Deletes the file.
public Delete ( ) : void
return void

FileInfoWrap() public method

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

FileInfoWrap() public method

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

MoveTo() public method

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

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string

WriteAllText() public method

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. ///
return void