Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Quality: Introduced ComPtr.As() to QI easily #16382

Merged
merged 8 commits into from
Nov 4, 2024

Conversation

0x5bfa
Copy link
Member

@0x5bfa 0x5bfa commented Oct 24, 2024

Resolved / Related Issues

Note

While I settled on this method to QI for now, we may want to use IDynamicInterfaceCastable, which is Hez let me know, after .NET 9 (stack allocation for classes) becomes GA. I need more exploration but this enables us to utilize is and as with QI called implicitly.

Steps used to test these changes

None

@0x5bfa 0x5bfa changed the title Code Quality: Introduced ComPtr.As<U> to QI easily Code Quality: Introduced ComPtr.As to QI easily Oct 24, 2024
@0x5bfa 0x5bfa changed the title Code Quality: Introduced ComPtr.As to QI easily Code Quality: Introduced ComPtr.As() to QI easily Oct 24, 2024
@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Nov 4, 2024
@yaira2 yaira2 merged commit 8f46dea into files-community:main Nov 4, 2024
6 checks passed
@0x5bfa 0x5bfa deleted the 5bfa/CQ-ComPtrAs branch November 4, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants