Make ClassPropertyDispatchAdapter Trim Friendly
Open
area-ILLinker/AOT
area-Trimming
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 20h 23m
- Merged PRs (30d)
- 103
Description
Currently `ClassPropertyDispatchAdapter` constructor utilizes `GetType()` in order to the runtime type of a `Control`, which is not trim friendly. `ClassPropertyDispatchAdapter` needs to know runtime type in order to get the public properties of the `Control` to support `AxHost`'s ability to invoke public properties on controls that share the same container as it. We need to decide among the options outlined [here](https://github.com/dotnet/winforms/pull/10219#discussion_r1382146069) how to make this trim friendly.
Contributor guide
Assessment
This issue has not been assessed yet.