Skip to content

Remove expression-keyed MemberInfo cache in ExpressionMemberAccessor - #70496

Merged
dariatiurina merged 1 commit into
dotnet:mainfrom
dariatiurina:dariatiurina-port-internal-aspnetcore-changes
Nov 11, 2026
Merged

dariatiurina merged 1 commit into
dotnet:mainfrom
dariatiurina:dariatiurina-port-internal-aspnetcore-changes

Conversation

@dariatiurina

@dariatiurina dariatiurina commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Remove expression-keyed MemberInfo cache in ExpressionMemberAccessor

@github-actions github-actions Bot added the area-blazor Includes: Blazor, Razor Components label Nov 11, 2026
@dariatiurina
dariatiurina marked this pull request as ready for review November 11, 2026 09:44
@dariatiurina
dariatiurina requested a review from a team as a code owner November 11, 2026 09:44
@dariatiurina dariatiurina self-assigned this Nov 11, 2026
Copilot AI balanced review requested due to automatic review settings November 11, 2026 09:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the change removing expression-keyed member metadata caching.

No open issues 🎉

What changed in this PR

Removes expression-keyed MemberInfo caching from Blazor’s ExpressionMemberAccessor, resolving member metadata directly without retaining accessor expressions in a static cache.

Changes:

  • Resolves member metadata on each call while preserving validation and error behavior.
  • Removes the obsolete cache-clearing call and retains display-name caching.
File Description
src/​Components/​Web/​src/​Forms/​ExpressionMemberAccessor.cs Removes the expression-keyed cache and directly returns resolved member metadata.

Review effort: Balanced

@dariatiurina
dariatiurina enabled auto-merge (squash) November 11, 2026 10:19
@PureWeen

Copy link
Copy Markdown
Member

/review

@PureWeen

Copy link
Copy Markdown
Member

Copilot's local review panel found no issues to raise at this commit.

@dariatiurina
dariatiurina merged commit 4255ab3 into dotnet:main Nov 11, 2026
39 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 3%

No docs needed: internal refactoring removing a private cache in an internal class; no public or observable behavior change.

Documentation surfaces considered

  • Conceptual article: Not required — Internal cache removal with no user-visible change.
  • Migration guidance: Not required — No user action needed on upgrade.
  • Breaking change: Not required — No API or behavior removal; internal class only.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — a57f169d Deployed Nov 11, 2026 by dariatiurina via conclusion #300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-reviewed-approved area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants