public static bool IsFileTypeDocument(FileInfo fileInfo) { return(DocumentUtilities.GetFileType(fileInfo) == FileType.Document); }
public static bool IsFileTypeSupported(FileInfo fileInfo) { var fileType = DocumentUtilities.GetFileType(fileInfo); return((fileType != FileType.None) && (fileType != FileType.Unknown)); }
public static bool IsFileTypeImage(FileInfo fileInfo) { return(DocumentUtilities.GetFileType(fileInfo) == FileType.Image); }
public static FileType GetFileType(string filename) { return(DocumentUtilities.GetFileType(new FileInfo(filename))); }