For serialization/deserialization purposes I'd like set a TypeConverter for a type located in an external, compiled assembly.
I stumbled over this question but the provided solution does not seem to be working for me: Add TypeConverter attribute to enum in runtime
TypeDescriptor.AddAttributes(typeof(ExternalType),
new TypeConverterAttribute(typeof(ExternalTypeTypeConverter)));
Calling
TypeDescriptor.GetAttributes(typeof(ExternalType));
returns the attribute as expected, but calling
TypeDescriptor.GetConverter(typeof(ExternalType));
does not return the previously added converter but just the TypeConverter base class.