▲ | WorldMaker a day ago | ||||||||||||||||
Since around .NET 5 the raw binary serializer (BinaryFormatter) throws danger warnings at compile time, generally doesn't work cross-platform, and most standard analysis configs upgrade those to compile errors. The documentation is full of similar danger warnings. It mostly remains for a backwards compatibility commitment, and most of the original use cases for BinaryFormatter have been generally all replaced with Span<T>, Memory<T>, and smarter "Unsafe" [0] Marshallers. I'm not sure I'd call the situation similar. [0] Unsafe in terms of doing memory access that can result in danger, but still far more safe than BinaryFormatter sledgehammers. | |||||||||||||||||
▲ | privatelypublic a day ago | parent [-] | ||||||||||||||||
Nice! But, doesn't negate my intent: warning that .net isn't immune to the binary serialization issues. I haven't had much of a chance to work with non-framework/mono unfortunately. So, good to see they made the issues explicit. Though, I chuckle at the idea of companies upgrading such to errors via config- but thats an iceberg of "the street is looking better than doing more coding." | |||||||||||||||||
|