You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: src/Microsoft.Net.Http.Headers/EntityTagHeaderValue.cs
+27-10
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,15 @@ public override string ToString()
93
93
return_tag;
94
94
}
95
95
96
+
/// <summary>
97
+
/// Check against another <see cref="EntityTagHeaderValue"/> for equality.
98
+
/// This equality check should not be used to determine if two values match under the RFC specifications (https://tools.ietf.org/html/rfc7232#section-2.3.2).
99
+
/// </summary>
100
+
/// <param name="obj">The other value to check against for equality.</param>
101
+
/// <returns>
102
+
/// <c>true</c> if the strength and tag of the two values match,
103
+
/// <c>false</c> if the other value is null, is not an <see cref="EntityTagHeaderValue"/>, or if there is a mismatch of strength or tag between the two values.
104
+
/// </returns>
96
105
publicoverrideboolEquals(objectobj)
97
106
{
98
107
varother=objasEntityTagHeaderValue;
@@ -103,7 +112,7 @@ public override bool Equals(object obj)
103
112
}
104
113
105
114
// Since the tag is a quoted-string we treat it case-sensitive.
/// Compares against another <see cref="EntityTagHeaderValue"/> to see if they match under the RFC specifications (https://tools.ietf.org/html/rfc7232#section-2.3.2).
126
+
/// </summary>
127
+
/// <param name="other">The other <see cref="EntityTagHeaderValue"/> to compare against.</param>
128
+
/// <param name="useStrongComparison"><c>true</c> to use a strong comparison, <c>false</c> to use a weak comparison</param>
129
+
/// <returns>
130
+
/// <c>true</c> if the <see cref="EntityTagHeaderValue"/> match for the given comparison type,
131
+
/// <c>false</c> if the other value is null or the comparison failed.
0 commit comments