Skip to content

Conversation

@jevansaks
Copy link
Member

In AOT we avoid generating the full IDispatch interface because it's large and heavyweight. Many interfaces derive from IDispatch for unstructured calling, but when CsWin32 generates an interface, the callers will want to call the structured interfaces and we don't need to weigh down their generated code with interfaces and types they don't need.

However, there are cases where having the real IDispatch would be useful. So now if you explicitly ask for IDispatch then we will generate the real one.

@jevansaks jevansaks requested a review from manodasanW November 2, 2025 21:19
@jevansaks jevansaks merged commit 72e6dee into main Nov 4, 2025
7 checks passed
@jevansaks jevansaks deleted the user/jevansaks/realidispatch branch November 4, 2025 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants