-
-
Notifications
You must be signed in to change notification settings - Fork 142
Closed
Description
As .net continuously moves in the direction of AoT compilation, it would be great to support non-reflection based serialization & deserialization through source generators.
I had a quick stroll through the codebase, and it should be possible to implement I'd say. The only tricky parts are
- The
Dictionary<string, object>as object can be anything and the Serializer needs to have the exact type in its source generator registered. I haven't looked that deep into it, but maybe theobjecttypes are mostlystringor at least generally known? - The generic
Tresponse deserialization where the user can provide anyT(e.g.ReadSecretAsync<T>), but this then has to be configured by the users themselves - maybe by registering their own customTypeInfoResolver?
Would be great if you could consider this. Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels