Skip to content

Fix 67285 parameter view cast message#67452

Open
dx3mirror wants to merge 3 commits into
dotnet:mainfrom
dx3mirror:fix-67285-parameter-view-cast-message
Open

Fix 67285 parameter view cast message#67452
dx3mirror wants to merge 3 commits into
dotnet:mainfrom
dx3mirror:fix-67285-parameter-view-cast-message

Conversation

@dx3mirror

@dx3mirror dx3mirror commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • Improves InvalidCastException message in ParameterView.TryGetValue to include parameter name and source/target types
  • Adds test coverage for splat dictionary scenario (intdouble)

Fixes #67285

Test plan

  • ParameterViewTest.ThrowsIfTryGetExistingValueWithIncorrectType passes
  • ParameterViewTest.FromDictionary_ThrowsIfTryGetValueWithIncorrectType passes
@dx3mirror dx3mirror requested a review from a team as a code owner June 29, 2026 05:44
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Jun 29, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Thanks for your PR, @dx3mirror. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dx3mirror

Copy link
Copy Markdown
Author

@dotnet-policy-service agree

@BrennanConroy BrennanConroy added the area-blazor Includes: Blazor, Razor Components label Jun 30, 2026
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 community-contribution Indicates that the PR has been added by a community member

2 participants