Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CellInfo"/> class.
 /// </summary>
 /// <param name="directoryInfo">
 /// The directory info.
 /// </param>
 /// <param name="cell">
 /// The cell.
 /// </param>
 public CellInfo(DatabaseDirectoryInfo directoryInfo, Cell cell)
 {
     this.directoryInfo = directoryInfo;
     this.cell          = cell;
     if (this.cell.Value != null)
     {
         this.CellValueSize = this.cell.Value.Length;
         if (this.CellValueSize > Limit)
         {
             this.value = this.cell.Value;
             Array.Resize(ref this.value, Limit);
             this.cell.Value = null;
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CellInfo"/> class.
 /// </summary>
 /// <param name="directoryInfo">
 /// The directory info.
 /// </param>
 /// <param name="cell">
 /// The cell.
 /// </param>
 public CellInfo(DatabaseDirectoryInfo directoryInfo, Cell cell)
 {
     this.directoryInfo = directoryInfo;
     this.cell = cell;
     if (this.cell.Value != null)
     {
         this.CellValueSize = this.cell.Value.Length;
         if (this.CellValueSize > Limit)
         {
             this.value = this.cell.Value;
             Array.Resize(ref this.value, Limit);
             this.cell.Value = null;
         }
     }
 }