Open niemyjski opened 10 years ago
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 :.
I was wondering if anyone has taken a look into this?
@niemyjski was on a vacation. will have a look at it this week.
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.