public void Write(BinaryWriter writer) { if (writer == null) { throw new ArgumentNullException(nameof(writer)); } writer.Write(Major.ToBytes()); writer.Write(MajorRevision.ToBytes()); writer.Write(Minor.ToBytes()); writer.Write(MinorRevision.ToBytes()); writer.Write(ProcessId.ToBytes()); }