Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hashcode = 0;

            unchecked {
                hashcode = (hashcode * 397) ^ (Ipv4 == null ? 0 : (Ipv4.GetHashCode()));
                hashcode = (hashcode * 397) ^ (Port == null ? 0 : (Port.GetHashCode()));
                hashcode = (hashcode * 397) ^ (Service_name == null ? 0 : (Service_name.GetHashCode()));
                hashcode = (hashcode * 397) ^ (Ipv6 == null ? 0 : (Ipv6.GetHashCode()));
            }
            return(hashcode);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (__isset.ipv4)
                {
                    hashcode = (hashcode * 397) + Ipv4.GetHashCode();
                }
                if (__isset.port)
                {
                    hashcode = (hashcode * 397) + Port.GetHashCode();
                }
                if ((Service_name != null) && __isset.service_name)
                {
                    hashcode = (hashcode * 397) + Service_name.GetHashCode();
                }
                if ((Ipv6 != null) && __isset.ipv6)
                {
                    hashcode = (hashcode * 397) + Ipv6.GetHashCode();
                }
            }
            return(hashcode);
        }