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

Added unit test that breaks deserialization. #48

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

Conversation

niemyjski
Copy link

I believe the fix is inside of this method: public static Type[] GetGenericTypeArguments(Type type). The SettingsDictionary inherits from dictionary but doesn't have any generic type arguments. The base type would need to be checked.

@niemyjski
Copy link
Author

I added

if (!IsTypeGeneric(type))
type = type.BaseType;

to that method and it fixed it. However, I'd expect the empty dictionary to be empty and not null. So it looks like there is still work todo :.

@niemyjski
Copy link
Author

I was wondering if anyone has taken a look into this?

@prabirshrestha
Copy link
Member

@niemyjski was on a vacation. will have a look at it this week.

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