Convert object to byte[] and back
I'm wanting to write objects of various types to a file as bytes and then retrieve then later reading in the bytes, converting them back to the object.
Any ideas on how to get started on this?
I haven't seen any classes in MSDN library so far that will do a direct conversion from any object to a byte[] and vice versa.
Thanks everyone!
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

jamesRank #1,153 · 1.6K reputationPosted Mar 1, 2004, 9:02 AM EST
joy.simpsonRank #4,292 · 353 reputationPosted Mar 1, 2004, 9:38 AM EST