Skip to content

Remove special handling of TypeDescriptionProviderAttribute and TypeConverterAttribute #1942

@vitek-karas

Description

@vitek-karas

TypeDescriptionProviderAttribute - the .ctor parameter are now annotated with PublicParameterlessConstructor and so the intrinsic handling in linker is not necessary anymore (linker would preserve any parameterless .ctor on the type).

TypeConverterAttribute - the .ctor parameter is annotated with PublicConstructors

  • Linker will mark any parameterless constructor on the type intrinsically
  • Linker will also mark any method which has exactly one parameter with type System.Type. Since the type must be TypeConverter derived, that means methods CanConvertFrom and CanConvertTo.

The .ctor part is covered by the annotation. It's unclear why linker preserves the other methods though.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions