Referencing this issue
The documentations for .NET Framework for various methods / objects defined within
System.Runtime.InteropServiceshas been marked withObsolete,mainly with comment that it may be unavailable in future releases. I'm including few samples:ICustomQueryInterface
DispatchWrapper
Marshal.GetObjectForNativeVariant
There are several more but the concern here is that they are marked as obsolete and there is no indication that there will be a substitute. Because we depend on those, it worries me that they are marked as obsolete. Given that .NET Core has made compatibility a priority, I would suggest that marking them obsolete is premature until there's an actual suitable replacement for us to use.
@bclothier Was in the middle of creating this. Thanks!
As a matter of fact as things currently are you absolutely need ICustomQueryInterface to customize System.Windows.Forms.WebBrowserSiteBase because the COM interop normally exposes the first implementation of an interface so it will ignore any attempt at re-implementing it in a derived class.
Also ICustomAdapter from System.Runtime.InteropServices
There are additional types that need to be fixed:
ComEventInterfaceAttribute and the two enum properties here https://github.com/dotnet/runtime/issues/720
@clairernovotny The ComEventInterfaceAttribute is no longer marked Obsolete. What version of dotnet is being used?
I'm using 5.0.100-preview.4.20258.7