Mark custom .NET Exceptions as [Serializable]

The two people that read my blog (besides my sister) know this already, but if you author a class library, please mark all classes deriving from Exception (or even better, ApplicationException) as [Serializable].  If I am using your library on the other side of a remoting channel, non-Serializable exceptions will cause me much heartache.

With Affection,

Your Customer.

 

7 Comments

Comments have been disabled for this content.