aloneguid / config

⚙ Config.Net - the easiest configuration framework for .NET developers. No BS.
MIT License
656 stars 86 forks source link

Json decimal throws exception #82

Closed mechjman closed 5 years ago

mechjman commented 6 years ago

Hi team, when using a decimal for a value I get the following exception:

Unhandled Exception: System.NotSupportedException: type System.Decimal on object 'PaymentAmount' is not supported. at Config.Net.Core.Box.BoxFactory.ValidateSupportedType(ResultBox rb, ValueHandler valueHandler) at Config.Net.Core.Box.BoxFactory.DiscoverProperties(Type t, ValueHandler valueHandler, Dictionary2 result, String base Path) at Config.Net.Core.Box.BoxFactory.Discover(Type t, ValueHandler valueHandler, String basePath) at Config.Net.Core.InterfaceInterceptor..ctor(Type interfaceType, IoHandler ioHandler, String prefix) at Config.Net.ConfigurationBuilder1.Build()

I've tested with this with Newtonsoft.Json dependency and it works fine.

mikefoxnobel commented 5 years ago

More basic types are supported. Version updated on 2018-10-16, please try new version.