Skip to content

Comments

Hidden members of base classes are now filtered out#557

Open
tofi92 wants to merge 1 commit intoAzure:mainfrom
tofi92:bugfix/hidden-members
Open

Hidden members of base classes are now filtered out#557
tofi92 wants to merge 1 commit intoAzure:mainfrom
tofi92:bugfix/hidden-members

Conversation

@tofi92
Copy link

@tofi92 tofi92 commented Feb 20, 2023

This fixes the "An item with the same key has already been added" exception thrown by ToDictionary, mentioned in #556.

I don't think there is a more elegant solution to this problem, as the "new" keyword is just a compiler hint to indicate that a developer actually intended to hide this member and cannot be read out from the reflected property alone. Also, this solution won't work with higher hierarchies.

…with the same key has already been added" exception thrown by ToDictionary
@egonl
Copy link

egonl commented Jul 31, 2024

We're having exact the same issue, would love to see this merged.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants