Пример #1
0
 public void MergeFrom(ErrorInfo other)
 {
     if (other == null)
     {
         return;
     }
     if (other.objectAddress_ != null)
     {
         if (objectAddress_ == null)
         {
             objectAddress_ = new global::Bgs.Protocol.ObjectAddress();
         }
         ObjectAddress.MergeFrom(other.ObjectAddress);
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.ServiceHash != 0)
     {
         ServiceHash = other.ServiceHash;
     }
     if (other.MethodId != 0)
     {
         MethodId = other.MethodId;
     }
 }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= ObjectAddress.GetHashCode();
            hash ^= Status.GetHashCode();
            hash ^= ServiceHash.GetHashCode();
            hash ^= MethodId.GetHashCode();
            return(hash);
        }
Пример #3
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);
        }