Rename underscore-prefixed validation sample fields - #672
Merged
Merged
Conversation
Co-authored-by: oroztocil <79744616+oroztocil@users.noreply.github.com>
Co-authored-by: oroztocil <79744616+oroztocil@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Rename underscore-prefixed fields in Blazor documentation samples
Rename underscore-prefixed validation sample fields
Sep 22, 2026
oroztocil
marked this pull request as ready for review
September 22, 2026 19:15
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved review issues were identified.
Review effort: Lite
Findings: None
What changed in this PR
Renames underscore-prefixed fields in .NET 11 Blazor validation samples to match naming conventions without changing behavior.
Changes:
- Renamed validation message stores.
- Renamed remote validation fields to
remoteErrorsandaccepted. - Updated references and avoided tuple-variable shadowing.
| File | Description |
|---|---|
11.0/BlazorWebAppRemoteValidation/BlazorWebAppRemoteValidation.Client/Pages/Home.razor |
Renames remote validation state fields and references. |
11.0/BlazorWebAppRemoteValidation/BlazorWebAppRemoteValidation.Client/CustomValidation.razor |
Renames the validation message store and tuple variable. |
11.0/BlazorSample_BlazorWebApp/Components/UsernameUniquenessValidator.razor |
Renames the async validation message store. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
guardrex
approved these changes
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR #662 introduced underscore-prefixed private fields in Blazor validation docs samples, which conflicts with the sample convention of camelCase field names without leading underscores.
Field naming
_messagestomessagesin the .NET 11 async validation samples._remoteErrorstoremoteErrorsand_acceptedtoacceptedin the remote validation form.Scoped cleanup
_Importsand_frameworkunchanged.messagesfield name.Example: