Delegates and Serialization in .NET
Delegates to non-public methods cannot be deserialized.
Not that the documentation mentions this anywhere, mind you. I had to find out the hard way.
If you attempt to deserialize a delegate that points to a public method, the .NET framework will throw a SerializationException with the following message:
“Additional information: Serialization will not deserialize delegates to non-public methods.”
This sucketh. I had to make a bunch of methods public thus violating a number of principles on good design.
