public void copyValue(Cell destCell) {switch (_cellType) {case BLANK:   destCell.setBlank();                           return;case NUMERIC: destCell.setCellValue(_numberValue);           return;case BOOLEAN: destCell.setCellValue(_booleanValue);          return;case STRING:  destCell.setCellValue(_stringValue);           return;case ERROR:   destCell.setCellErrorValue((byte)_errorValue); return;default: throw new IllegalStateException("Unexpected data type (" + _cellType + ")");}}
public void CopyValue(ICell destCell){switch (_cellType){case CellType.Blank: destCell.SetCellType(CellType.Blank); return;case CellType.Numeric: destCell.SetCellValue(_numberValue); return;case CellType.Boolean: destCell.SetCellValue(_boolValue); return;case CellType.String: destCell.SetCellValue(_stringValue); return;case CellType.Error: destCell.SetCellErrorValue((byte)_errorValue); return;}throw new InvalidOperationException("Unexpected data type (" + _cellType + ")");}