Rafaeruo / pkl-csharp

PKL lang bindings for C#, still WIP
Apache License 2.0
34 stars 1 forks source link

Implement decoder #6

Closed Rafaeruo closed 7 months ago

Rafaeruo commented 7 months ago

This PR implements an initial version of the decoder. It decodes the returned PKL objects into an instance of the type passed to Decoder.Evaluate[...].

Things to consider:

To prevent value types from being boxed and have an alterative to using reflection, I'm thinking of providing an option to use a source generator to generate a custom decoder for each type that maps to a pkl module in the future.