UtilFileType Class

Contains file types related utilities.

Definition

Namespace: DevCase.Core.IO.FileSystem
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class UtilFileType
Inheritance
Object    UtilFileType

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetFileTypeMatch(FileInfo, FileType) Determines whether a file type signature is match in the file header of the specified file, then returns a success percentage from 0% to 100% where 100% means all the file signatures were found in the file header.
GetFileTypeMatch(String, FileType) Determines whether a file type signature is match in the file header of the specified file, then returns a success percentage from 0% to 100% where 100% means all the file signatures were found in the file header.
GetFileTypeMatches(FileInfo) Tries to detect the file type of the specified file by analyzing a collection of known file type signatures on the file header, then returns a ListT that contains the success percentage (0%...100%) of each file type found (if any).
GetFileTypeMatches(String) Tries to detect the file type of the specified file by analyzing a collection of known file type signatures on the file header, then returns a ListT that contains the success percentage (0%...100%) of each file type found (if any).
GetFileTypeMatches(FileInfo, FileType) Tries to detect the file type of the specified file by analyzing a collection of file type signatures on the file header, then returns a ListT that contains the success percentage (0%...100%) of each file type found (if any).
GetFileTypeMatches(String, FileType) Tries to detect the file type of the specified file by analyzing a collection of file type signatures on the file header, then returns a ListT that contains the success percentage (0%...100%) of each file type found (if any).
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

Fields

FiletypesDict A collection of known file types and its signatures.

The keys are the filetype extension, the values are an Array of file types which uses that extension.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also