Repository navigation
Adding cultureName to GeneratedRegexAttribute - #73490
Conversation
|
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
|
Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions Issue DetailsFixes #59492 This adds changes the default behavior of the source generated engine to use Invariant Culture for case-sensitive comparisons, as well as adds two APIs on the GeneratedRegex attribute that take in a cultureName that let's the user override that behavior. This also updates the regex source generator's analyzer and codefixer to be explicit into which constructor it picks and select the one that has the explicit cultureName with it. Note: This API hasn't been approved yet, hence I'm starting the PR as a draft, and we will take this API to review next Tuesday. cc: @stephentoub @tarekgh @GrabYourPitchforks
|
|
The wasm failure is unrelated to this PR, so I'll go ahead and merge. |
Fixes #59492
This adds changes the default behavior of the source generated engine to use Invariant Culture for case-sensitive comparisons, as well as adds two APIs on the GeneratedRegex attribute that take in a cultureName that let's the user override that behavior. This also updates the regex source generator's analyzer and codefixer to be explicit into which constructor it picks and select the one that has the explicit cultureName with it.
Note: This API hasn't been approved yet, hence I'm starting the PR as a draft, and we will take this API to review next Tuesday.
cc: @stephentoub @tarekgh @GrabYourPitchforks