Well, if you are using the IFormatter interface and some sort of
factory, you will only have to change a little bit of your code (the part
that gets the IFormatter implementation).
If not, then you will have to change all instances of the
BinaryFormatter to use your specific formatter type, or, the IFormatter
interface, and call to get the appropriate formatter.
The only remoting formatter that I know of which produces anything
readable is the SoapFormatter. While you can use this, you should note that
the format that the SoapFormatter will be noticeably larger than what the
binary formatter produces.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Jen" <no**@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>I have a Hashtable serializing to a binary file ok but I really would like
the file to be in XML format or other readable format. I DO NOT want to
change all my code, I want to keep the Hashtable in place. Is there an
easy way to serialize/deserialize to/from something readable instead of
binary?