MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / GetHashCode

Method GetHashCode

dotnet/src/webdriver/Cookie.cs:356–365  ·  view source on GitHub ↗

Serves as a hash function for a particular type. A hash code for the current , based on the and .

()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected