Serialization Formatters

As demonstrated earlier, serialization formatters serialize objects to streams. What we haven’t discussed yet is how to write a custom serialization formatter that can be plugged into .NET Remoting. Writing a serialization formatter is largely an exercise in the following tasks, in no particular order:

  • Obtaining a list of an object type’s serializable members

  • Traversing an object graph that’s rooted at the object being serialized

  • Serializing the full type name of an object, its containing assembly, and the values of its serializable members

  • Serializing references to objects within the graph so that the graph can be reconstructed during deserialization

Fortunately, the .NET Framework provides several classes that you ...

Get Microsoft® .NET Remoting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.