/// <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; } } }