//=================================================
 internal XLOCReader(XLOCConfiguration Configuration) => this.Configuration = Configuration;
 public static XLOCReader FromFile(string path, XLOCConfiguration configuration = null)
 {
     try { return(FromStream(new MemoryStream(File.ReadAllBytes(path)), configuration)); }
     catch (Exception ex) { throw new IOException(string.Format("Не удалось открыть файл {0}", path), ex); }
 }
 public static XLOCReader FromBuffer(byte[] buf, XLOCConfiguration configuration = null) => FromStream(new MemoryStream(buf), configuration);
 public static XLOCReader FromStream(Stream stream, XLOCConfiguration configuration = null) => new XLOCReader((configuration ?? new XLOCConfiguration()).AddDocument(SpreadsheetDocument.Open(stream, false)));