How to byte array received from socket, to C# structure
问题 I have to Develop a Service (C#) which read data from Network Device via TCP Socket and convert this is C# structure. I am basing on existing, old Delphi application which is doing all this stuff and I have to migrate logic in C#. EDITED: I got a snapshot from C-Source of original data-structure: struct _RequestMsgStruct { UCHAR request_ver; //In DELPHI it is represented as Byte USHORT mac_addr[3]; /* MAC Address */ UINT product_type; //In DELPHI - Cardinal UCHAR supply_type; //In DELPHI -