Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

If a delegate type is a WinRT delegate or a WinRT-projected delegate, allow default marshalling.#23877

Merged
jkoritzinsky merged 1 commit intodotnet:masterfrom
jkoritzinsky:winrt-in-cominterop-delegate-fix
Apr 11, 2019
Merged

If a delegate type is a WinRT delegate or a WinRT-projected delegate, allow default marshalling.#23877
jkoritzinsky merged 1 commit intodotnet:masterfrom
jkoritzinsky:winrt-in-cominterop-delegate-fix

Conversation

@jkoritzinsky
Copy link
Copy Markdown
Member

When we changed the behavior of delegate marshalling to disallow users to marshal to the old _Delegate interface from the Mscorlib TLB in #23738, I missed a corner case where we might be marshalling for a WinRT event but might not be in a WinRT marshalling scenario, such subscribing to the INotifyPropertyChanged.PropertyChanged event. While I was working on cleaning up #23409, I found this bug.

This change allows any delegates that are WinRT delegates or are projected to/from WinRT delegates to marshal by default rules.

@jkoritzinsky jkoritzinsky merged commit 3271f50 into dotnet:master Apr 11, 2019
davmason pushed a commit to davmason/coreclr that referenced this pull request Apr 27, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants