dotnet / dotnet/winforms

Make ClassPropertyDispatchAdapter Trim Friendly

Open
#10,226 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.