C# Класс TVSorter.Wrappers.DirectoryInfoWrap

A wrapper for the DirectoryInfo class.
Наследование: IDirectoryInfo
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Create ( ) : void

Creates the directory.

CreateFile ( string name ) : IFileInfo

Creates a file under this directory.

Delete ( bool recursive ) : void

Deletes the directory.

DirectoryInfoWrap ( DirectoryInfo directoryInfo ) : System.IO

Initializes a new instance of the DirectoryInfoWrap class.

DirectoryInfoWrap ( string path ) : System.IO

Initializes a new instance of the DirectoryInfoWrap class.

GetDirectories ( ) : IDirectoryInfo[]

Gets the sub directories of this directory.

GetFile ( string outputPath ) : IFileInfo

Gets a sub file of the directory at the specified path.

GetFiles ( ) : IFileInfo[]

Gets the files of this directory.

ToString ( ) : string

Returns a string that represents the current object.

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

Метод Описание
ConvertDirectoryInfoToIDirectoryInfo ( DirectoryInfo directoryInfos ) : IDirectoryInfo[]

Converts an array of DirectoryInfo into an array of IDirectoryInfo.

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

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

Creates the directory.
public Create ( ) : void
Результат void

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

Creates a file under this directory.
public CreateFile ( string name ) : IFileInfo
name string /// The name of the file to create. ///
Результат IFileInfo

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

Deletes the directory.
public Delete ( bool recursive ) : void
recursive bool /// A value indicating whether the deletion should be recursive. ///
Результат void

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

Initializes a new instance of the DirectoryInfoWrap class.
public DirectoryInfoWrap ( DirectoryInfo directoryInfo ) : System.IO
directoryInfo System.IO.DirectoryInfo /// The directory info. ///
Результат System.IO

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

Initializes a new instance of the DirectoryInfoWrap class.
public DirectoryInfoWrap ( string path ) : System.IO
path string /// The path. ///
Результат System.IO

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

Gets the sub directories of this directory.
public GetDirectories ( ) : IDirectoryInfo[]
Результат IDirectoryInfo[]

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

Gets a sub file of the directory at the specified path.
public GetFile ( string outputPath ) : IFileInfo
outputPath string /// The path toget the file for. ///
Результат IFileInfo

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

Gets the files of this directory.
public GetFiles ( ) : IFileInfo[]
Результат IFileInfo[]

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

Returns a string that represents the current object.
public ToString ( ) : string
Результат string