public override bool Equals(object?obj) { var user = (User)obj; if (user == null) { throw new ArgumentException("Obj can't be equal to null"); } if (Login == user.Login && Password == user.Password && _cookie.Equals(user._cookie) && _proxy.Equals(user._proxy)) { return(true); } return(false); }