There seems to be automatic (using reflection) and custom serialization in c# (I'm using .NET 5.0 currently)
While Exceptions should be serializable I would assume custom serialization is not strictly needed as automatic serialization can do the job.
Still all online resources I can find, and even Visual Studio and SonarQube issues tell me to implement custom serialization for Exception subclasses when there are any custom fields (in my case an enum and a string, which should both be easy to serialize).
Why is this? Shouldn't it just work fine using automatic serialization?