예제 #1
0
        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);
        }
예제 #2
0
 public bool IsEquivalent(ContentLengthMetric metric)
 {
     return(Min == metric.Min && Max == metric.Max && HasHTag == metric.HasHTag && HasPTag == metric.HasPTag && HasTableTag == metric.HasTableTag);
 }