I thought I had read somewhere that Silverlight 4 was going to contain a BinaryFormatter to support serializing/deserializing binary data in the client application but I can't seem to locate it, so I'm guessing it's not there.
I have an existing service I need to access from my Silverlight 4 application. The service uses sockets over TCP. I've been able to get the client app connected and am able to receive messages from the service but I cannot deserialize the content of the message.
The message consists of the following object serialized on the server:
class Message
{
String Name { get; set; }
Stream Data { get; set; }
}
I do not have control over the service and changing the format, protocol, etc. is not an option. (Also, fwiw, Name is variable length.)
How can I reconstitute the Message object in my Silverlight client?