feat: add other primitive/base type support#4
Conversation
…ase types" This reverts commit dbd3a3c.
luizaes
left a comment
There was a problem hiding this comment.
Hey @ntark, thank you for your contribution! ✨
I've changed one thing in your code: instead of manually mapping the base types to their defaults in the MaskDefaults dict, we know just use their respective default(T) value. I think it makes more sense, and it correlates to a future change I want to do where all other types also map to their default. The bahavior should be identical, with the exception of char which will now map to \0 instead of 0 (see https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/default-values).
I've also updated the documentation accordingly like you mentioned. I'll merge this change and should upload a new version to NuGet shortly after. Thanks again!
Really need long/decimal support for my use case and just added all I could think of.
@luizaes Could you look take a look please?
Readme file will also need to be edited if this PR is merged.