Hacker News new | ask | show | jobs
by MarkSweep 1113 days ago
You can get serialization to work, but you have to use a serialization framework that is trimming compatible. For example, to use System.Text.Json, you have to opt-in the types you want to serialize.

https://learn.microsoft.com/en-us/dotnet/standard/serializat...

1 comments

"Opt-in" is not doing this feature justice, that is full serialization code pre-generated at compile time for your types. Beautiful.