public void Sub(PresenceCounts counts) { cMissing -= counts.cMissing; cPresent -= counts.cPresent; cExtra -= counts.cExtra; if (cMissing < 0 || cPresent < 0 || cExtra < 0) { throw new Exception("Underflow"); } }
public void Add(PresenceCounts counts) { cMissing += counts.cMissing; cPresent += counts.cPresent; cExtra += counts.cExtra; }