/// <summary> /// 是否相等。 /// </summary> /// <param name="other">给定的 <see cref="RequestParameters"/>。</param> /// <returns>返回布尔值。</returns> public bool Equals(RequestParameters other) { if (!Accept.Equals(other.Accept, StringComparison.OrdinalIgnoreCase)) { return(false); } return(ContentType.Equals(other.ContentType, StringComparison.OrdinalIgnoreCase)); //return Headers.SequenceEqual(other.Headers); }