Exemplo n.º 1
0
        public override int GetHashCode()
        {
            var hashCode = 1027370663;

            hashCode = hashCode * -1521134295 + ID.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FirstName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(LastName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Patronymic);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Birthday);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Phone);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Email);

            hashCode = hashCode * -1521134295 + RegistrationDate.GetHashCode();
            hashCode = hashCode * -1521134295 + DateLastVisit.GetHashCode();
            hashCode = hashCode * -1521134295 + CountVisit.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Title);

            return(hashCode);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (registrationDate_ != null)
            {
                hash ^= RegistrationDate.GetHashCode();
            }
            if (CompanyWebsite.Length != 0)
            {
                hash ^= CompanyWebsite.GetHashCode();
            }
            if (ContactPhone.Length != 0)
            {
                hash ^= ContactPhone.GetHashCode();
            }
            if (ContactName.Length != 0)
            {
                hash ^= ContactName.GetHashCode();
            }
            if (CompanyLogo.Length != 0)
            {
                hash ^= CompanyLogo.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            var hashCode = 701007377;

            hashCode = hashCode * -1521134295 + GuestRequestKey.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Guest> .Default.GetHashCode(GuestPersonalDetails);

            hashCode = hashCode * -1521134295 + Status.GetHashCode();
            hashCode = hashCode * -1521134295 + RegistrationDate.GetHashCode();
            hashCode = hashCode * -1521134295 + EntryDate.GetHashCode();
            hashCode = hashCode * -1521134295 + ReleaseDate.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <AreaTypes> > .Default.GetHashCode(Areas);

            hashCode = hashCode * -1521134295 + EqualityComparer <List <string> > .Default.GetHashCode(SunbAreas);

            hashCode = hashCode * -1521134295 + Type.GetHashCode();
            hashCode = hashCode * -1521134295 + Adults.GetHashCode();
            hashCode = hashCode * -1521134295 + Children.GetHashCode();
            hashCode = hashCode * -1521134295 + Pool.GetHashCode();
            hashCode = hashCode * -1521134295 + HotTub.GetHashCode();
            hashCode = hashCode * -1521134295 + Garden.GetHashCode();
            hashCode = hashCode * -1521134295 + ChildrenAttractions.GetHashCode();
            return(hashCode);
        }