示例#1
0
        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");
            }
        }
示例#2
0
 public void Add(PresenceCounts counts)
 {
     cMissing += counts.cMissing;
     cPresent += counts.cPresent;
     cExtra   += counts.cExtra;
 }