Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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));
 }
Ejemplo n.º 4
0
 public static TableDescriptor GetReadDynamic(string sheetName, TableKeyDescriptor key, int beginRow)
 {
   return GetRead(sheetName, key, beginRow, DynamicColumns);
 }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 6
0
 public static TableDescriptor GetReadDynamic(string sheetName, TableKeyDescriptor key, int beginRow)
 {
     return(GetRead(sheetName, key, beginRow, DynamicColumns));
 }