Skip to content

Marshal.GetIDispatchForObject should be implemented on platforms with COM support #33217

@elinor-fung

Description

@elinor-fung

Marshal.GetIDispatchForObject always throws PlatformNotSupportedException.

Now that we have COM support on Windows, it should actually be implemented under FEATURE_COMINTEROP and separate tests added for Windows / non-Windows - just like the other COM-related Marshal functions.

Callers achieving the same functionality through Marshal.GetComInterfaceForObject with IDispatch as the type could be switched to it as well - #33060 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions