Serves as a hash function for a particular type. A hash code for the current , based on the and .
()
| 354 | /// </summary> |
| 355 | /// <returns>A hash code for the current <see cref="Cookie" />, based on the <see cref="Name"/> and <see cref="Value"/>.</returns> |
| 356 | public override int GetHashCode() |
| 357 | { |
| 358 | unchecked |
| 359 | { |
| 360 | int hash = 17; |
| 361 | hash = hash * 23 + this.cookieName.GetHashCode(); |
| 362 | hash = hash * 23 + (this.cookieValue?.GetHashCode() ?? 0); |
| 363 | return hash; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | private static string? StripPort(string? domain) |
| 368 | { |
nothing calls this directly
no outgoing calls
no test coverage detected