public int Deserialize(byte[] ropBytes, int startIndex) { int index = startIndex; this.ID = (ushort)BitConverter.ToInt16(ropBytes, index); index += sizeof(ushort); return index - startIndex; } }