FileType class

File type base class

public class FileType : Enumeration


Name Description
FileType() Serialization constructor


Name Description
Description { get; } File type description
Extension { get; } The file extension
Family { get; } The file family
FileFormat { get; } The file format


Name Description
static FromExtension(string) Gets FileType for provided fileExtension
static FromFilename(string) Returns FileType for specified fileName
static FromStream(Stream) Returns FileType for provided document stream
CompareTo(object) Compares current object to other.
virtual Equals(Enumeration) Determines whether two object instances are equal.
override Equals(object) Determines whether two object instances are equal.
override GetHashCode() Serves as the default hash function.
override ToString() String representation
static GetAll<T>() Returns all enumeration values.
implicit operator Implicit conversion to string


Name Description
static readonly Unknown Unknown file type

See Also