public ContentLengthMetric Merge(ContentLengthMetric newValue) { HasHTag |= newValue.HasHTag; HasPTag |= newValue.HasPTag; HasTableTag |= newValue.HasTableTag; foreach (var file in newValue._files) { _files[file.Key] = file.Value; } return(this); }
public bool IsEquivalent(ContentLengthMetric metric) { return(Min == metric.Min && Max == metric.Max && HasHTag == metric.HasHTag && HasPTag == metric.HasPTag && HasTableTag == metric.HasTableTag); }