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

[StyleCleanUp] Address IDE warnings Part 2 #10170

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

harshit7962
Copy link
Member

@harshit7962 harshit7962 commented Dec 12, 2024

Description

This work is a part of our initiative to set code-style guidelines, align WPF and WinForms, and ensure PR standards with respect to styles. This in turn will help us in better maintainability and readability of the repo overall. The changes follow up from the PR #10080 and references to the issue #10017.

The current changes addresses the following Errors/Warnings in the src folder of WPF:

  • IDE0019: Use pattern matching to avoid as followed by a null check
  • IDE0020: Use pattern matching to avoid is check followed by a cast (with variable)
  • IDE0029: Use coalesce expression

A good way to go about reviewing this is to go commit by commit which pans over individual errors/warnings, and hence easing out the overall understanding.

Customer Impact

None

Regression

None

Testing

Local Build Pass
Will be taken in the next test pass

Microsoft Reviewers: Open in CodeFlow

himgoyalmicro
himgoyalmicro previously approved these changes Dec 16, 2024
himgoyalmicro
himgoyalmicro previously approved these changes Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Included in test pass PR metadata: Label to tag PRs, to facilitate with triage Status:Committed Status:Completed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants