Serializing object ready to send over TCPClient Stream
I've got a server and client set up using TcpListener and TcpClient . I want to send an object to my server application for processing. I've discovered the using System.Runtime.Serialization and the following documentation , but I didn't want to faff around to find that I'm doing it in long winded way. The question: What is the best way to process and send an object over the TCP stream? Sending and receiving. Here's an example of my object: // Create a new house to send house newHouse = new house(); // Set variables newHouse.street = "Mill Lane"; newHouse.postcode = "LO1 BT5"; newHouse.house