title: Transferring Assembly over TCP
body: <p>I am currently trying to send a serialized object over a TCP connection as follows - </p>
  
  <pre><code>BinaryFormatter formatter = new BinaryFormatter();
  
          formatter.Serialize(clientStream, (Object)Assembly.LoadFrom("test.dll"));
  </code></pre>
  
  <p>where clientStream is </p>
  
  <pre><code>TcpClient tcpClient = (TcpClient)client;
          NetworkStream clientStream = tcpClient.GetStream();
  </code></pre>
  
  <p>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)?</p>