ReflectionHelper.GetValue does not work with properties of non-nullable value types
AndrioCelos opened this issue · 0 comments
AndrioCelos commented
While working on a modified version of Twitch Plays, I noticed that trying to use ReflectionHelper.GetValue<int>
to read a property would return 0 instead of the actual value.
The problem seems to be the use of the ??
operator with a generic type that isn't necessarily nullable: