protected bool Equals(LiaraCookie cookie) { return(string.Equals(Name, cookie.Name) && string.Equals(Value, cookie.Value) && string.Equals(Domain, cookie.Domain) && string.Equals(Path, cookie.Path) && Expires.Equals(cookie.Expires) && SecureOnly.Equals(cookie.SecureOnly) && HttpOnly.Equals(cookie.HttpOnly)); }
public override int GetHashCode() { unchecked { var hashCode = (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Domain != null ? Domain.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Path != null ? Path.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Expires.GetHashCode(); hashCode = (hashCode * 397) ^ SecureOnly.GetHashCode(); hashCode = (hashCode * 397) ^ HttpOnly.GetHashCode(); return(hashCode); } }