trampster / JsonSrcGen

Json library that uses .NET 5 Source Generators
MIT License
148 stars 4 forks source link

Support for Decimal type #49

Closed WillEhrendreich closed 3 years ago

WillEhrendreich commented 3 years ago

Hello! Thank you for this awesome package!

Would it be possible to support Decimal? If this is already possible and I just don't understand (very likely), I apologize, this is all rather new to me.

trampster commented 3 years ago

Hi, thanks for you request, currently JsonSrcGen doesn't support the Decimal type.

However I think adding Decimal support is a great idea and is definitely possible.

trampster commented 3 years ago

There is a new release (1.1.0 Alpha 1) which has decimal support. ( Thanks to @hugobritobh who contributed it )

You can get it on nuget here: https://www.nuget.org/packages/JsonSrcGen/1.1.0-alpha.2

Be aware that this new version requires you to have a runtime dependency on JsonSrcGen.Runtime (same version https://www.nuget.org/packages/JsonSrcGen.Runtime/1.1.0-alpha.2)