public int Serialize(byte[] buffer, int offset) { if (Network != null) { buffer.WriteUInt16(offset, Network.Value); offset += 2; } return offset; }