private TableDescriptor(string sheetName, TableKeyDescriptor key, int beginRow, int columnCount, string[] columnNames) { m_sheetName = sheetName; m_key = key; m_beginRow = beginRow; m_columnCount = columnCount; m_columnNames = columnNames; m_headerRow = m_beginRow - 1; }
public static TableDescriptor GetRead(string sheetName, TableKeyDescriptor key, int beginRow, int columnCount) { #region Check if (string.IsNullOrEmpty(sheetName)) { throw new ArgumentNullException("sheetName"); } if (ReferenceEquals(key, null)) { throw new ArgumentNullException("key"); } if (beginRow <= 0) { throw new ArgumentException("Must be more than 0", "beginRow"); } #endregion return new TableDescriptor(sheetName, key, beginRow, columnCount, null); }
public static TableDescriptor GetRead(string sheetName, TableKeyDescriptor key, int beginRow, int columnCount) { #region Check if (string.IsNullOrEmpty(sheetName)) { throw new ArgumentNullException("sheetName"); } if (ReferenceEquals(key, null)) { throw new ArgumentNullException("key"); } if (beginRow <= 0) { throw new ArgumentException("Must be more than 0", "beginRow"); } #endregion return(new TableDescriptor(sheetName, key, beginRow, columnCount, null)); }
public static TableDescriptor GetReadDynamic(string sheetName, TableKeyDescriptor key, int beginRow) { return GetRead(sheetName, key, beginRow, DynamicColumns); }
public static TableDescriptor GetReadDynamic(string sheetName, TableKeyDescriptor key, int beginRow) { return(GetRead(sheetName, key, beginRow, DynamicColumns)); }