I have a class that contains some properties that need to be sent to a server application that is using tcp/ip. Our tcpClient Class needs the data as a byte array. How can I take each property and put them into a continuous array of bytes to be sent to the server app? Below is an example of the data class. I hope this makes since. Thanks.
VB.NET:
Public Class Mydata
Public Property Status() as Int16
Public Property Key() as UInt32
Public Property Rtype as Int16
Public Property dataLength Int32
Public Property data as string
End Class