Making a byte array out of struct
Hi guys,
Please advise on the best way to convert a simple struct into a byte array without all the metadata added by the serialization / marshalling mechanisms (like taking a pointer to the struct in C/C++).
I need this because I'm writing a client application which is supposed to communicate with a server excpecting to receive raw packets in a certain format so I'm using standard berkley sockets (Net.Sockets.Socket) which use byte[] for Send and Receice.
Thanks