string valueToString(object value) { Type type = value.GetType(); if (type == _typeSet.tString) { return((string)value); } else if (type == _typeSet.tDouble) { return(((double)value).ToString(doubleFStr, numberFormat)); } else if (type == _typeSet.tFloat) { return(((float)value).ToString(doubleFStr, numberFormat)); } else if (type == _typeSet.tInt) { return(((int)value).ToString(numberFormat)); } else if (type == _typeSet.tShort) { return(((short)value).ToString(numberFormat)); } else if (type == _typeSet.tDateTime) { return(((DateTime)value).ToString(dateFormat)); } else if (type == _typeSet.tBool) { return(BoolValue.format(((bool)value))); } else if (!type.IsValueType) { return(ToolType.format((Type)value)); } return(null); }