public static string SerializeValue(
     PropertyDescriptor prop,
     object value,
     string propertyDisplayName)
 {
     return(XmlPropertySetting.ConvertValueToString(prop.Converter, value, propertyDisplayName));
 }
        public static string SerializeValue(RadProperty property, object value)
        {
            if (value == null)
            {
                return((string)null);
            }
            PropertyDescriptor prop = TypeDescriptor.GetProperties(property.OwnerType).Find(property.Name, true);

            return(prop == null?XmlPropertySetting.ConvertValueToString(TypeDescriptor.GetConverter(property.PropertyType), value, property.FullName) : XmlPropertySetting.SerializeValue(prop, value, property.FullName));
        }