Example of a serializable exception in C#

2020-03-12

I’m just saving this here for future reference: here’s an example of a serializable exception in C#:

Some things of note:

Also included is a battery of unit tests to verify that the class really does serialize and deserialize itself properly:

Related posts

Equality in C#

Tags

C#
Programming

Content © 2024 Richard Cook. All rights reserved.