Example #1
0
        public override bool Equals(System.Object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            User user = (User)obj;

            return(Email.Equals(user.Email) && Address.Equals(user.Address) &&
                   Profession.Equals(user.Profession) && Privilege.Equals(user.Privilege) &&
                   Username.Equals(user.Username) && GivenName.Equals(user.GivenName) &&
                   Surname.Equals(user.Surname) && Birthdate.Equals(user.Birthdate) &&
                   Gender.Equals(user.Gender) && CultureInfo.Equals(user.CultureInfo) &&
                   City.Equals(user.City) && Country.Equals(user.Country) &&
                   Latitude.Equals(user.Latitude) && Longitude.Equals(user.Longitude));
        }