public override object GetValue(ICell cell) { if (CellFormat.UltimateType(cell) == CellType.Boolean) { return(cell.BooleanCellValue ? "TRUE" : "FALSE"); } else { return(cell.StringCellValue); } }
public override object GetValue(ICell cell) { CellType type = CellFormat.UltimateType(cell); if (type == CellType.Boolean) { return(cell.BooleanCellValue ? "TRUE" : "FALSE"); } else if (type == CellType.Numeric) { return(cell.NumericCellValue); } else { return(cell.StringCellValue); } }