protected override bool IsEquivalent(Cell other, Fingerprint fingerprint) { if (!base.IsEquivalent(other, fingerprint)) { return(false); } PeriodicEvent o = (PeriodicEvent)other; var touched = new Capo <bool>(fingerprint, tag.Offset); if (touched[0]) { if (key_ != o.key_) { return(false); } } if (touched[1]) { if (intParam_ != o.intParam_) { return(false); } } return(true); }
protected override bool EqualsTo(Cell other) { if (!base.EqualsTo(other)) { return(false); } PeriodicEvent o = (PeriodicEvent)other; if (key_ != o.key_) { return(false); } if (intParam_ != o.intParam_) { return(false); } return(true); }