Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= ObjectAddress.GetHashCode();
            hash ^= Status.GetHashCode();
            hash ^= ServiceHash.GetHashCode();
            hash ^= MethodId.GetHashCode();
            return(hash);
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (objectAddress_ != null)
            {
                hash ^= ObjectAddress.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (ServiceHash != 0)
            {
                hash ^= ServiceHash.GetHashCode();
            }
            if (MethodId != 0)
            {
                hash ^= MethodId.GetHashCode();
            }
            return(hash);
        }