Skip to content

Add debugger display to PropertyChangedEventArgs - #137027

Open
makazeu wants to merge 1 commit into
dotnet:mainfrom
makazeu:propertychanged-debugger-display
Open

makazeu wants to merge 1 commit into
dotnet:mainfrom
makazeu:propertychanged-debugger-display

Conversation

@makazeu

@makazeu makazeu commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Adds [DebuggerDisplay("PropertyName = {PropertyName}")] to PropertyChangedEventArgs so the debugger shows the changed property's name without expanding the object. This does not change event behavior or add public APIs.

Adds tests in the existing test file for ordinary property names, empty strings, and null, using the shared debugger-display evaluation helper.

Resolves #136608

Show the changed property name in the debugger and add coverage for named, empty, and null property names.

Co-authored-by: Copilot App <[email protected]>
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Nov 5, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.ComponentModel community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PropertyChangedEventArgs should have a nice DebuggerDisplay

2 participants