I am currently trying to send a serialized object over a TCP connection as follows -
BinaryFormatter formatter = new BinaryFormatter();
formatter.Serialize(clientStream, (Object)Assembly.LoadFrom("test.dll"));
where clientStream is
TcpClient tcpClient = (TcpClient)client;
NetworkStream clientStream = tcpClient.GetStream();
This is the sending part. But can anyone tell me how do I receive this on the client side (i.e. deserialize it on the other end)?