Skip to content

Conversation

benhopkinstech
Copy link
Contributor

Description

I have refactored seven of the DiagnosticDescriptor.cs files following the points below

  • Use constants to maintain consistency between descriptors where applicable
  • Use a helper method when creating a LocalizableResourceString to make code more concise

Fixes #60831

@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Mar 9, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 9, 2025
Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it! Thanks for polishing things up here. 😄 ❤️ ⚡

@captainsafia captainsafia merged commit cfe55d2 into dotnet:main Mar 10, 2025
27 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview3 milestone Mar 10, 2025
@benhopkinstech benhopkinstech deleted the diagdesc branch March 10, 2025 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactoring DiagnosticDescriptors.cs files
2 participants