Skip to content

Conversation

@javiercn
Copy link
Member

@javiercn javiercn commented Feb 7, 2024

Fixes #52755

The code didn't handle multiple members that differed only in casing. Upon analysis of the implementation, we determined that we could rely on the already available MemberInfo instead of searching for it while building the expression.

@javiercn javiercn requested a review from a team as a code owner February 7, 2024 16:55
@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Feb 7, 2024
@javiercn javiercn force-pushed the javiercn/issue52755 branch from 0756e42 to bdccb3a Compare February 8, 2024 07:28
@javiercn
Copy link
Member Author

javiercn commented Feb 8, 2024

/backport to release/8.0

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2024

Started backporting to release/8.0: https://github.com/dotnet/aspnetcore/actions/runs/7829121848

@javiercn javiercn merged commit 1b91cca into main Feb 9, 2024
@javiercn javiercn deleted the javiercn/issue52755 branch February 9, 2024 08:07
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0-preview2 milestone Feb 9, 2024
onurmicoogullari pushed a commit to onurmicoogullari/aspnetcore that referenced this pull request Feb 14, 2024
* Fixes an issue in `FieldIdentifier.Create` where we were using `PropertyOrField` and that was causing issues with members that just differed in casing and members with non ASCII characters.
* We already had the `MemberInfo` that `PropertyOrField` needed to compute, so we stored that in the cache instead and used `MakeMemberAccess`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blazor 'System.Reflection.AmbiguousMatchException' on .NET 8

4 participants