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

Add Public API Marshal.IsTypeVisibleFromCom and Marshal.GetEndComSlot - #19507

Merged
jkotas merged 2 commits into
dotnet:masterfrom
luqunl:IsTypeVisibleFromCom
Aug 15, 2018
Merged

jkotas merged 2 commits into
dotnet:masterfrom
luqunl:IsTypeVisibleFromCom

Conversation


public static bool IsTypeVisibleFromCom(Type t)
{
throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be more appropriate to return false here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. just use similar logical as Marshal.IsComObject()

@jkotas
jkotas merged commit 81455f6 into dotnet:master Aug 15, 2018
@luqunl
luqunl deleted the IsTypeVisibleFromCom branch August 15, 2018 22:52
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