public String formatAsString() {switch (_cellType) {case NUMERIC:return String.valueOf(_numberValue);case STRING:return '"' + _textValue + '"';case BOOLEAN:return _booleanValue ? "TRUE" : "FALSE";case ERROR:return ErrorEval.getText(_errorCode);default:return "<error unexpected cell type " + _cellType + ">";}}
public String FormatAsString(){switch (_cellType){case CellType.Numeric:string result = _numberValue.ToString(CultureInfo.InvariantCulture);return result;case CellType.String:return '"' + _textValue + '"';case CellType.Boolean:return _boolValue ? "TRUE" : "FALSE";case CellType.Error:return ErrorEval.GetText(_errorCode);}return "<error unexpected cell type " + _cellType + ">";}