Z.IO.Extensions Namespace

Assembly: Z.ExtensionMethods.WithNamespace.dll

Syntax

namespace Z.IO.Extensions

FileInfo Extended Type

FileInfo Description
AppendAllLines(FileInfo, IEnumerable`1) A FileInfo extension method that appends all lines.
AppendAllLines(FileInfo, IEnumerable`1, Encoding) A FileInfo extension method that appends all lines.
AppendAllText(FileInfo, string) Opens a file, appends the specified string to the file, and then closes the file. If the file does not exist, this method creates a file, writes the specified string to the file, then closes the file.
AppendAllText(FileInfo, string, Encoding) Appends the specified string to the file, creating the file if it does not already exist.
ChangeExtension(FileInfo, string) Changes the extension of a @this string.
CreateDirectory(FileInfo) Creates all directories and subdirectories in the specified @this.
CreateDirectory(FileInfo, DirectorySecurity) Creates all the directories in the specified @this, applying the specified Windows security.
EnsureDirectoryExists(FileInfo) Creates all directories and subdirectories in the specified @this if the directory doesn't already exists. This methods is the same as FileInfo.CreateDirectory however it's less ambigues about what happen if the directory already exists.
EnsureDirectoryExists(FileInfo, DirectorySecurity) Creates all directories and subdirectories in the specified @this if the directory doesn't already exists. This methods is the same as FileInfo.CreateDirectory however it's less ambigues about what happen if the directory already exists.
GetDirectoryFullName(FileInfo) A FileInfo extension method that gets directory full name.
GetDirectoryName(FileInfo) A FileInfo extension method that gets directory name.
GetFileNameWithoutExtension(FileInfo) Returns the file name of the specified @this string without the extension.
GetPathRoot(FileInfo) Gets the root directory information of the specified @this.
HasExtension(FileInfo) Determines whether a @this includes a file name extension.
IsPathRooted(FileInfo) Gets a value indicating whether the specified @this string contains a root.
ReadAllBytes(FileInfo) Opens a binary file, reads the contents of the file into a byte array, and then closes the file.
ReadAllLines(FileInfo) Opens a text file, reads all lines of the file, and then closes the file.
ReadAllLines(FileInfo, Encoding) Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
ReadAllText(FileInfo) Opens a text file, reads all lines of the file, and then closes the file.
ReadAllText(FileInfo, Encoding) Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
ReadLines(FileInfo) Reads the lines of a file.
ReadLines(FileInfo, Encoding) Read the lines of a file that has a specified encoding.
ReadToEnd(FileInfo) A FileInfo extension method that reads the file to the end.
ReadToEnd(FileInfo, long) A FileInfo extension method that reads the file to the end.
ReadToEnd(FileInfo, Encoding) A FileInfo extension method that reads the file to the end.
ReadToEnd(FileInfo, Encoding, long) A FileInfo extension method that reads the file to the end.
Rename(FileInfo, string) A FileInfo extension method that renames.
RenameExtension(FileInfo, string) Changes the extension of a @this string.
RenameFileWithoutExtension(FileInfo, string) A FileInfo extension method that rename file without extension.
WriteAllBytes(FileInfo, byte[]) Creates a new file, writes the specified byte array to the file, and then closes the file. If the target file already exists, it is overwritten.
WriteAllLines(FileInfo, string[]) Creates a new file, write the specified string array to the file, and then closes the file.
WriteAllLines(FileInfo, string[], Encoding) Creates a new file, writes the specified string array to the file by using the specified encoding, and then closes the file.
WriteAllLines(FileInfo, IEnumerable`1) Creates a new file, write the specified string array to the file, and then closes the file.
WriteAllLines(FileInfo, IEnumerable`1, Encoding) Creates a new file, writes the specified string array to the file by using the specified encoding, and then closes the file.
WriteAllText(FileInfo, string) Creates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is overwritten.
WriteAllText(FileInfo, string, Encoding) Creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten.

DirectoryInfo Extended Type

DirectoryInfo Description
Clear(DirectoryInfo) A DirectoryInfo extension method that clears all files and directories in this directory.
CreateAllDirectories(DirectoryInfo) Creates all directories and subdirectories in the specified @this.
CreateAllDirectories(DirectoryInfo, DirectorySecurity) Creates all the directories in the specified @this, applying the specified Windows security.
DeleteDirectoriesWhere(DirectoryInfo, Func`2) A DirectoryInfo extension method that deletes the directories where.
DeleteDirectoriesWhere(DirectoryInfo, SearchOption, Func`2) A DirectoryInfo extension method that deletes the directories where.
DeleteFilesWhere(DirectoryInfo, Func`2) A DirectoryInfo extension method that deletes the files where.
DeleteFilesWhere(DirectoryInfo, SearchOption, Func`2) A DirectoryInfo extension method that deletes the files where.
DeleteOlderThan(DirectoryInfo, TimeSpan) A DirectoryInfo extension method that deletes the older than.
DeleteOlderThan(DirectoryInfo, SearchOption, TimeSpan) A DirectoryInfo extension method that deletes the older than.
EnsureDirectoryExists(DirectoryInfo) Creates all directories and subdirectories in the specified @this if the directory doesn't already exists. This methods is the same as FileInfo.CreateDirectory however it's less ambigues about what happen if the directory already exists.
EnsureDirectoryExists(DirectoryInfo, DirectorySecurity) Creates all directories and subdirectories in the specified @this if the directory doesn't already exists. This methods is the same as FileInfo.CreateDirectory however it's less ambigues about what happen if the directory already exists.
EnumerateDirectories(DirectoryInfo) Returns an enumerable collection of directory names in a specified @this.
EnumerateDirectories(DirectoryInfo, string) Returns an enumerable collection of directory names that match a search pattern in a specified @this.
EnumerateDirectories(DirectoryInfo, string, SearchOption) Returns an enumerable collection of directory names that match a search pattern in a specified @this, and optionally searches subdirectories.
EnumerateDirectories(DirectoryInfo, string[]) Returns an enumerable collection of directory names that match a search pattern in a specified @this.
EnumerateDirectories(DirectoryInfo, string[], SearchOption) Returns an enumerable collection of directory names that match a search pattern in a specified @this, and optionally searches subdirectories.
EnumerateFiles(DirectoryInfo) Returns an enumerable collection of file names in a specified @this.
EnumerateFiles(DirectoryInfo, string) Returns an enumerable collection of file names that match a search pattern in a specified @this.
EnumerateFiles(DirectoryInfo, string, SearchOption) Returns an enumerable collection of file names that match a search pattern in a specified @this, and optionally searches subdirectories.
EnumerateFiles(DirectoryInfo, string[]) Returns an enumerable collection of file names that match a search pattern in a specified @this.
EnumerateFiles(DirectoryInfo, string[], SearchOption) Returns an enumerable collection of file names that match a search pattern in a specified @this, and optionally searches subdirectories.
EnumerateFileSystemEntries(DirectoryInfo) Returns an enumerable collection of file-system entries in a specified @this.
EnumerateFileSystemEntries(DirectoryInfo, string) Returns an enumerable collection of file-system entries that match a search pattern in a specified @this.
EnumerateFileSystemEntries(DirectoryInfo, string, SearchOption) Returns an enumerable collection of file names and directory names that match a search pattern in a specified @this, and optionally searches subdirectories.
EnumerateFileSystemEntries(DirectoryInfo, string[]) Returns an enumerable collection of file-system entries that match a search pattern in a specified @this.
EnumerateFileSystemEntries(DirectoryInfo, string[], SearchOption) Returns an enumerable collection of file names and directory names that match a search pattern in a specified @this, and optionally searches subdirectories.
GetDirectories(DirectoryInfo, string[]) Returns an enumerable collection of directory names that match a search pattern in a specified @this.
GetDirectories(DirectoryInfo, string[], SearchOption) Returns an enumerable collection of directory names that match a search pattern in a specified @this, and optionally searches subdirectories.
GetDirectoriesWhere(DirectoryInfo, Func`2) Returns an enumerable collection of directory names in a specified @this.
GetDirectoriesWhere(DirectoryInfo, string, Func`2) Returns an enumerable collection of directory names that match a search pattern in a specified @this.
GetDirectoriesWhere(DirectoryInfo, string, SearchOption, Func`2) Returns an enumerable collection of directory names that match a search pattern in a specified @this, and optionally searches subdirectories.
GetDirectoriesWhere(DirectoryInfo, string[], Func`2) Returns an enumerable collection of directory names that match a search pattern in a specified @this.
GetDirectoriesWhere(DirectoryInfo, string[], SearchOption, Func`2) Returns an enumerable collection of directory names that match a search pattern in a specified @this, and optionally searches subdirectories.
GetFiles(DirectoryInfo, string[]) Returns an enumerable collection of file names that match a search pattern in a specified @this.
GetFiles(DirectoryInfo, string[], SearchOption) Returns an enumerable collection of file names that match a search pattern in a specified @this, and optionally searches subdirectories.
GetFilesWhere(DirectoryInfo, Func`2) Returns an enumerable collection of file names in a specified @this.
GetFilesWhere(DirectoryInfo, string, Func`2) Returns an enumerable collection of file names that match a search pattern in a specified @this.
GetFilesWhere(DirectoryInfo, string, SearchOption, Func`2) Returns an enumerable collection of file names that match a search pattern in a specified @this, and optionally searches subdirectories.
GetFilesWhere(DirectoryInfo, string[], Func`2) Returns an enumerable collection of file names that match a search pattern in a specified @this.
GetFilesWhere(DirectoryInfo, string[], SearchOption, Func`2) Returns an enumerable collection of file names that match a search pattern in a specified @this, and optionally searches subdirectories.
GetFileSystemEntries(DirectoryInfo) Returns an enumerable collection of file-system entries in a specified @this.
GetFileSystemEntries(DirectoryInfo, string) Returns an enumerable collection of file-system entries that match a search pattern in a specified @this.
GetFileSystemEntries(DirectoryInfo, string, SearchOption) Returns an enumerable collection of file names and directory names that match a search pattern in a specified @this, and optionally searches subdirectories.
GetFileSystemEntries(DirectoryInfo, string[]) Returns an enumerable collection of file-system entries that match a search pattern in a specified @this.
GetFileSystemEntries(DirectoryInfo, string[], SearchOption) Returns an enumerable collection of file names and directory names that match a search pattern in a specified @this, and optionally searches subdirectories.
GetFileSystemEntriesWhere(DirectoryInfo, Func`2) Returns an enumerable collection of file-system entries in a specified @this.
GetFileSystemEntriesWhere(DirectoryInfo, string, Func`2) Returns an enumerable collection of file-system entries that match a search pattern in a specified @this.
GetFileSystemEntriesWhere(DirectoryInfo, string, SearchOption, Func`2) Returns an enumerable collection of file names and directory names that match a search pattern in a specified @this, and optionally searches subdirectories.
GetFileSystemEntriesWhere(DirectoryInfo, string[], Func`2) Returns an enumerable collection of file-system entries that match a search pattern in a specified @this.
GetFileSystemEntriesWhere(DirectoryInfo, string[], SearchOption, Func`2) Returns an enumerable collection of file names and directory names that match a search pattern in a specified @this, and optionally searches subdirectories.
GetSize(DirectoryInfo) A DirectoryInfo extension method that gets a size.
PathCombine(DirectoryInfo, string[]) Combines multiples string into a path.
PathCombineDirectory(DirectoryInfo, string[]) Combines multiples string into a path.
PathCombineFile(DirectoryInfo, string[]) Combines multiples string into a path.

IEnumerable`1 Extended Type

IEnumerable`1 Description
Delete(IEnumerable`1) An IEnumerable extension method that deletes the given @this.
Delete(IEnumerable`1) An IEnumerable extension method that deletes the given @this.
ForEach(IEnumerable`1, Action`1) Enumerates for each in this collection.
ForEach(IEnumerable`1, Action`1) Enumerates for each in this collection.
PathCombine(IEnumerable`1) An IEnumerable extension method that combine all value to return a path.

Stream Extended Type

Stream Description
ReadToEnd(Stream) A Stream extension method that reads a stream to the end.
ReadToEnd(Stream, Encoding) A Stream extension method that reads a stream to the end.
ReadToEnd(Stream, long) A Stream extension method that reads a stream to the end.
ReadToEnd(Stream, Encoding, long) A Stream extension method that reads a stream to the end.
ToByteArray(Stream) A Stream extension method that converts the Stream to a byte array.
ToMD5Hash(Stream) A Stream extension method that converts the @this to a md 5 hash.
Powered by ZZZ Projects .NET Documentation Generator 0.0.2 (Alpha)