Sergio0694 / PolySharp

PolySharp provides generated, source-only polyfills for C# language features, to easily use all runtime-agnostic features downlevel. Add a reference, set your C# version to latest and have fun! 🚀
MIT License
1.83k stars 49 forks source link

How is this project compared to SimonCropp/Polyfill? #86

Closed ghost closed 1 year ago

ghost commented 1 year ago

https://github.com/SimonCropp/Polyfill

Sergio0694 commented 1 year ago

Hey @iahung3, sorry for the delay! The project has a very different approach than Polyfill: that ships source files, whereas this uses a source generator. The advantage of this is that it automatically generates only the types needed, allows extra customization (you can opt-in and out of any given type, and more options), and it is also able to correctly generate type forwards to ensure things work as expected in multi-targeting scenarios 🙂