Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/wpfPublic

[StyleCleanUp] Use literals where appropriate (CA1802)#10725

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
h3xds1nz wants to merge2 commits intodotnet:main
base:main
Choose a base branch
Loading
fromh3xds1nz:fix-ca1802

Conversation

h3xds1nz
Copy link
Member

@h3xds1nzh3xds1nz commentedApr 7, 2025
edited
Loading

I've prepared this PR but then just realized that#10382 needs to be done first to prevent havoc, so gonna draft this.

Fixes#10724

Description

Swaps use ofstatic readonly fields forconst where appropriate. This in some cases saves allocations.

Note that naming issues will be taken care of in a separate issue to reduce diffs.

Customer Impact

Decreased allocations, a bit of perf.

Regression

No.

Testing

Local build.

Risk

Low, just an analyzer fix. The only issue would be reflection-based changes that will no longer be possible but there's no point of supporting these anyways, we'd never move anywhere.

Microsoft Reviewers:Open in CodeFlow

rampaa reacted with thumbs up emoji
@h3xds1nzh3xds1nz requested review froma team ascode ownersApril 7, 2025 16:02
@h3xds1nzh3xds1nz marked this pull request as draftApril 7, 2025 16:02
@dotnet-policy-servicedotnet-policy-servicebot added PRmetadata: Label to tag PRs, to facilitate with triage Community ContributionA label for all community Contributions labelsApr 7, 2025
@codecovCodecov
Copy link

codecovbot commentedApr 7, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.20563%. Comparing base(72af9a5) to head(4dab672).
Report is 1 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@##                main      #10725         +/-   ##===================================================- Coverage   11.25778%   11.20563%   -0.05216%===================================================  Files           3315        3313          -2       Lines         665229      665139         -90       Branches       74668       74668                 ===================================================- Hits           74890       74533        -357- Misses        589035      589307        +272+ Partials        1304        1299          -5
FlagCoverage Δ
Debug11.20563% <100.00000%> (-0.05216%)⬇️

Flags with carried forward coverage won't be shown.Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dipeshmsftdipeshmsftAwaiting requested review from dipeshmsft

@singhashish-wpfsinghashish-wpfAwaiting requested review from singhashish-wpf

@Kuldeep-MSKuldeep-MSAwaiting requested review from Kuldeep-MS

At least 1 approving review is required to merge this pull request.

Assignees

@h3xds1nzh3xds1nz

Labels
Community ContributionA label for all community ContributionsdraftPRmetadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

CA1802: Use literals where appropriate
1 participant
@h3xds1nz

[8]ページ先頭

©2009-2025 Movatter.jp