public class ImageListConverter : TypeConverter { public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) { Collection imageList = value as Collection; if (imageList != null && destinationType == typeof(string)) { StringBuilder builder = new StringBuilder();builder.Append("[");bool first = true;foreach (ImageUrl imageUrl in imageList){ if(first){ first = false;}else {builder.Append(",");} builder.Append("\""); builder.Append(imageUrl.Url.Replace("~/", "")); builder.Append("\""); }builder.Append("]");return builder.ToString(); } return base.ConvertTo(context, culture, value, destinationType); } }