malgreen / NexNux

NexNux is a cross-platform mod manager built with C# and Avalonia
GNU General Public License v3.0
4 stars 0 forks source link

Refactor JSON serialization/deserialization to use source generation #38

Open malgreen opened 1 year ago

malgreen commented 1 year ago

By default, System.Text.Json in C# uses reflection to serialize/deserialize objects into and from json. This is normally fine, but if full trim mode in .NET 7 is to be used, it needs to be converted to use source generation. See this