Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Firstname.Length != 0)
            {
                hash ^= Firstname.GetHashCode();
            }
            if (Lastname.Length != 0)
            {
                hash ^= Lastname.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (City.Length != 0)
            {
                hash ^= City.GetHashCode();
            }
            if (Iban.Length != 0)
            {
                hash ^= Iban.GetHashCode();
            }
            if (Time.Length != 0)
            {
                hash ^= Time.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (Shirtsize.Length != 0)
            {
                hash ^= Shirtsize.GetHashCode();
            }
            if (PostalCode != 0)
            {
                hash ^= PostalCode.GetHashCode();
            }
            if (MacAdress.Length != 0)
            {
                hash ^= MacAdress.GetHashCode();
            }
            if (Latitude != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Latitude);
            }
            if (JobTitle.Length != 0)
            {
                hash ^= JobTitle.GetHashCode();
            }
            if (Currency.Length != 0)
            {
                hash ^= Currency.GetHashCode();
            }
            if (Country.Length != 0)
            {
                hash ^= Country.GetHashCode();
            }
            if (CountryCode.Length != 0)
            {
                hash ^= CountryCode.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public bool Equals(RemoteClient obj)
 {
     return(MacAdress.ToString() == obj.MacAdress.ToString());
 }