--- /dev/null
+<linker>
+ <assembly fullname="System.ComponentModel.TypeConverter">
+ <type fullname="System.ComponentModel.TypeDescriptor">
+ <!-- called through reflection by System.ComponentModel.DefaultValueAttribute -->
+ <method name="ConvertFromInvariantString" />
+ </type>
+ </assembly>
+</linker>
return GetDescriptor(type, nameof(type)).GetConverter();
}
+ // This is called by System.ComponentModel.DefaultValueAttribute via reflection.
+ private static object ConvertFromInvariantString(Type type, string stringValue)
+ {
+ return GetConverter(type).ConvertFromInvariantString(stringValue);
+ }
+
/// <summary>
/// Gets the default event for the specified type of component.
/// </summary>