public override bool Equals(AMetric other) { if (!(other is DurationMetric metric)) { return(false); } return(duration == metric.duration); }
public override bool Equals(AMetric other) { if (!(other is HashMetric metric)) { return(false); } if (this == metric) { return(true); } for (int i = 0; i < hash.Length; i++) { if (hash[i] != metric.hash[i]) { return(false); } } return(true); }