public override bool Equals(object obj) { var other = obj as MediaTypeHeaderValue; if (other == null) { return(false); } return(_mediaType.Equals(other._mediaType, StringComparison.OrdinalIgnoreCase) && HeaderUtilities.AreEqualCollections(_parameters, other._parameters)); }
public override bool Equals(object obj) { var other = obj as RangeHeaderValue; if (other == null) { return(false); } return(StringSegment.Equals(_unit, other._unit, StringComparison.OrdinalIgnoreCase) && HeaderUtilities.AreEqualCollections(Ranges, other.Ranges)); }