Repository navigation
Do not propagate property getter errors from GetPropertiesImpl - #2211
Open
romangolev wants to merge 1 commit into
Open
romangolev wants to merge 1 commit into
romangolev wants to merge 1 commit into
Conversation
A getter that raises made TypeDescriptor.GetProperties fail, which broke WPF bindings. Such a property is now typed as object.
Author
|
@dotnet-policy-service agree company="pyrevitlabs" |
romangolev
marked this pull request as ready for review
December 5, 2026 13:40
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.
CustomTypeDescHelpers.GetPropertiesImplreads every attribute of a Python object to learn its type. A getter that raises madeTypeDescriptor.GetPropertiesthrow, which fails WPF binding resolution (Window.Show()) for a data context that has such a property.A property whose getter raises is now typed
object. Other types are unchanged, andSystemExit,KeyboardInterruptand fatal exceptions still propagate. Attributes excluded by the attribute filters are no longer read. Tests are inCustomTypeDescriptorTest.cs; three fail without the change. Tested locally on net8.0.