Beispiel #1
0
        public override bool Equals([NotNullWhen(true)] object?comparand)
        {
            Cookie?other = comparand as Cookie;

            return(other != null &&
                   string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase) &&
                   string.Equals(Value, other.Value, StringComparison.Ordinal) &&
                   string.Equals(Path, other.Path, StringComparison.Ordinal) &&
                   CookieComparer.EqualDomains(Domain, other.Domain) &&
                   (Version == other.Version));
        }