コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (getAccounts_ != null)
            {
                hash ^= GetAccounts.GetHashCode();
            }
            if (saveAccounts_ != null)
            {
                hash ^= SaveAccounts.GetHashCode();
            }
            if (deleteAccounts_ != null)
            {
                hash ^= DeleteAccounts.GetHashCode();
            }
            if (getEmployees_ != null)
            {
                hash ^= GetEmployees.GetHashCode();
            }
            if (saveEmployees_ != null)
            {
                hash ^= SaveEmployees.GetHashCode();
            }
            if (deleteEmployees_ != null)
            {
                hash ^= DeleteEmployees.GetHashCode();
            }
            if (getJobs_ != null)
            {
                hash ^= GetJobs.GetHashCode();
            }
            if (saveJobs_ != null)
            {
                hash ^= SaveJobs.GetHashCode();
            }
            if (deleteJobs_ != null)
            {
                hash ^= DeleteJobs.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
 public void MergeFrom(MainController other)
 {
     if (other == null)
     {
         return;
     }
     if (other.getAccounts_ != null)
     {
         if (getAccounts_ == null)
         {
             getAccounts_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         GetAccounts.MergeFrom(other.GetAccounts);
     }
     if (other.saveAccounts_ != null)
     {
         if (saveAccounts_ == null)
         {
             saveAccounts_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         SaveAccounts.MergeFrom(other.SaveAccounts);
     }
     if (other.deleteAccounts_ != null)
     {
         if (deleteAccounts_ == null)
         {
             deleteAccounts_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         DeleteAccounts.MergeFrom(other.DeleteAccounts);
     }
     if (other.getEmployees_ != null)
     {
         if (getEmployees_ == null)
         {
             getEmployees_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         GetEmployees.MergeFrom(other.GetEmployees);
     }
     if (other.saveEmployees_ != null)
     {
         if (saveEmployees_ == null)
         {
             saveEmployees_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         SaveEmployees.MergeFrom(other.SaveEmployees);
     }
     if (other.deleteEmployees_ != null)
     {
         if (deleteEmployees_ == null)
         {
             deleteEmployees_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         DeleteEmployees.MergeFrom(other.DeleteEmployees);
     }
     if (other.getJobs_ != null)
     {
         if (getJobs_ == null)
         {
             getJobs_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         GetJobs.MergeFrom(other.GetJobs);
     }
     if (other.saveJobs_ != null)
     {
         if (saveJobs_ == null)
         {
             saveJobs_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         SaveJobs.MergeFrom(other.SaveJobs);
     }
     if (other.deleteJobs_ != null)
     {
         if (deleteJobs_ == null)
         {
             deleteJobs_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         DeleteJobs.MergeFrom(other.DeleteJobs);
     }
 }