Example #1
0
 public string ConvertToString(object value, WriteSettings settings)
 {
     if (value == null)
     {
         return(null);
     }
     return(fConverter.ConvertToString(value, settings));
 }
Example #2
0
        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());
            }
        }