public override string ConvertToInvariantString(object value) { if (!(value is PointCollection pc)) { throw new NotSupportedException(); } var converter = new PointTypeConverter(); return(string.Join(", ", pc.Select(p => converter.ConvertToInvariantString(p)))); }
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/PointCollectionConverter.xml" path="//Member[@MemberName='ConvertTo']/Docs" /> public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (value is not PointCollection pc) { throw new NotSupportedException(); } var converter = new PointTypeConverter(); return(string.Join(", ", pc.Select(p => converter.ConvertToInvariantString(p)))); }