Is this a good way to generically deserialize objects?
- by Damien Wildfire
I have a stream onto which serialized objects representing messages are dumped periodically. The objects are one of a very limited number of types, and other than the actual sequence of bytes that arrives, I have no way of knowing what type of message it is.
I would like to simply try to deserialize it as an object of a particular type, and if an…