Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hidden members of base classes are now filtered out #557

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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