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
Use null propagation operator for windows build #17795
Conversation
|
Don't have a Windows-machine to build on atm. but hopefully I caught most of them. @iSazonov Any tips regarding 31408eb ? Update: Never mind. |
src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs
Outdated
Show resolved
Hide resolved
| { | ||
| securityDescHandle.Value.Free(); | ||
| } | ||
| securityDescHandle?.Free(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Handy links: |


PR Summary
Replace if not null-checks with null propagation operator to solve IDE0031 with .NET Preview 7.
Additional findings when compiled against win7-x64 (in devcontainer).
PR Context
Related to #17769
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).