public string ConvertToString(object value, WriteSettings settings) { if (value == null) { return(null); } return(fConverter.ConvertToString(value, settings)); }
public static string ToString(object obj, WriteSettings settings) { if (obj == null) { return(string.Empty); } ITkTypeConverter converter = TkTypeDescriptor.GetConverter(obj.GetType()); if (converter != null) { return(converter.ConvertToString(obj, settings)); } else { return(obj.ToString()); } }