-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[StyleCleanUp] Convert typeof(Foo).Name to nameof(Foo) (IDE0082) #10266
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
Conversation
src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateContentLoader.cs
Outdated
Show resolved
Hide resolved
|
@himgoyalmicro Fixed merge conflict :) |
|
That's unfortunate, this PR will have to wait until this flows in due to the implementation of tl;dr the failure is not real, those two generate different results. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@himgoyalmicro Once dotnet/sdk#46195 is merged and the SDK flows in, it will work. For now we gotta wait. |
|
@himgoyalmicro It builds now, the new SDK flowed in but of course #10514 broke the test runs now haha. |
I have a fix ready that I'll push soon. This was caused by the switch from xUnit test runner to VSTest test runner introduced in #10514 which changed the order in which test were ran and exposed an existing bug in the tests. |
|
@h3xds1nz: Just a ping to let you know that the test failures in this PR were fixed in main, pulling main should fix the failures. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10266 +/- ##
==========================================
Coverage ? 11.09255%
==========================================
Files ? 3215
Lines ? 648471
Branches ? 71534
==========================================
Hits ? 71932
Misses ? 575450
Partials ? 1089
Flags with carried forward coverage won't be shown. Click here to find out more. |
himgoyalmicro
left a comment
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.
LGTM
|
Many thanks to @h3xds1nz for your relentless contributions. Your support is invaluable 😄 |
|
@himgoyalmicro Way too sweet, thank you, happy to contribute :) |
Fixes #10285
Description
Analyzer fix, converts occurrences of
typeof(Foo).Nameto the compile-time generatednameof(Foo)alternative.Customer Impact
Cleaner codebase, impact is negligible perf-wise as its exception cases.
Regression
No.
Testing
Local build.
Risk
Minimal.
Microsoft Reviewers: Open in CodeFlow