63 {
64 if (destinationType == null)
65 {
66 throw new ArgumentNullException("destinationType");
67 }
68 if (
value is Rectangle rectangle)
69 {
70 if (destinationType == typeof(string))
71 {
73 {
75 }
76 string separator = culture.TextInfo.ListSeparator + " ";
78 string[] value2 = new string[4]
79 {
84 };
85 return string.Join(separator, value2);
86 }
88 {
90 {
91 typeof(int),
92 typeof(int),
93 typeof(int),
94 typeof(int)
95 });
96 if (constructor != null)
97 {
98 return new InstanceDescriptor(constructor,
new object[4] { rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height });
99 }
100 }
101 }
102 return base.ConvertTo(context,
culture,
value, destinationType);
103 }
string? ConvertToString(object? value)
static TypeConverter GetConverterTrimUnsafe([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type)
static CultureInfo CurrentCulture