/// <summary>
        /// Creates an instance of <see cref="ExcelBinaryReader"/>
        /// </summary>
        /// <param name="fileStream">The file stream.</param>
        /// <returns></returns>
        public static IExcelDataReader CreateBinaryReader(Stream fileStream)
        {
            IExcelDataReader reader = new ExcelBinaryReader();

            reader.Initialize(fileStream);

            return(reader);
        }
        public static IExcelDataReader CreateReader(Stream fileStream, ExcelFileType excelFileType)
        {
            IExcelDataReader reader = null;

            switch (excelFileType)
            {
            case ExcelFileType.Binary:
                reader = new ExcelBinaryReader();
                reader.Initialize(fileStream);
                break;

            case ExcelFileType.OpenXml:
                reader = new ExcelOpenXmlReader();
                reader.Initialize(fileStream);
                break;
            }

            return(reader);
        }