Open zaimoni opened 3 years ago
Unsure how much integrated source code generation will help here.
This was already attempted once, against .NET Core 2.0 -- it did not stick, then.
https://devblogs.microsoft.com/dotnet/porting-to-net-core/ (intentionally taken out)
https://github.com/dotnet/runtime/issues/21433 (put back in)
https://docs.microsoft.com/en-us/dotnet/standard/serialization/binary-serialization#binary-serialization-in-net-core (reference list of types that were needed-or-else in 2017)
Starting with .NET 5.0, this is explicitly deprecated (there is a compiler warning). Given the track record elsewhere, there is no way an outsider can rule out an intentional removal as early as .NET 6.0 with no viable replacement options. Newtonsoft's BSON is documented as feature-incomplete.
Fortunately, C# 9.0 introduced source code generators.