You have few options. Any of them depend on how you use the data. You can pack it in Guid, use an array of bytes, use your own Struct, or pack it as Base64 or HEX and paste it into a string.
[StructLayout( LayoutKind.Explicit)] public struct MyStruct { public MyStruct(byte[] buffer) { if (buffer.Length != 10) throw new ArgumentOutOfRangeException(); High = BitConverter.ToUInt16(buffer, 0); Low = BitConverter.ToUInt64(buffer, 2); } [FieldOffset(0)] public ushort High;
source share