Provide ComObjectWrapper-only support for Dual COM interfaces #96720
Open
Description
As mentioned in #66674 (comment), there's customer desire for support for Dual interfaces in NativeAOT scenarios. Dual interfaces are IDispatch-derived interfaces that also include vtable entries after the IDispatch entries. The .NET runtime has historically invoked members on Dual interfaces via their vtable entries as that is significantly more efficient.
I propose that we add support for consuming Dual interfaces in the COM source generator though the vtable entries without adding any special support for IDispatch. This would also consumers of these APIs to move to using source-generated COM and supporting NativeAOT.
Metadata
Assignees
Type
Projects
Status
No status