2using System.Collections.Generic;
 
    7using System.Threading.Tasks;
 
   24        public override object ConvertTo(ITypeDescriptorContext context,
 
   25           CultureInfo culture, 
object value, Type destinationType)
 
   27            List<String> v = value as List<String>;
 
   29            if (destinationType == typeof(
string) && v != 
null)
 
   31                return String.Join(
",", v.ToArray());
 
   34            return base.ConvertTo(context, culture, value, destinationType);
 
The CsvConverter is used to display string lists on a single line in a property grid.
 
override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Overrides the ConvertTo method of TypeConverter.