Esempio n. 1
0
        public static FileContentType DetectFileType(string file)
        {
            if (SearchBinary.IsMine(file))
            {
                return(FileContentType.Binary);
            }
            else if (SearchText.IsMine(file))
            {
                return(FileContentType.Text);
            }

            return(FileContentType.None);
        }