예제 #1
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = DeploymentId.GetHashCode();
         // Suitable nullity checks etc, of course :)
         if (DeploymentName != null)
         {
             hash = hash * 17 + DeploymentName.GetHashCode();
         }
         if (DeploymentCategory != null)
         {
             hash = hash * 17 + DeploymentCategory.GetHashCode();
         }
         if (DeploymentTenantId != null)
         {
             hash = hash * 17 + DeploymentTenantId.GetHashCode();
         }
         if (DeploymentVersion != null)
         {
             hash = hash * 17 + DeploymentVersion.GetHashCode();
         }
         return(hash);
     }
 }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (party_ != null)
            {
                hash ^= Party.GetHashCode();
            }
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (DeploymentId.Length != 0)
            {
                hash ^= DeploymentId.GetHashCode();
            }
            if (DeploymentName.Length != 0)
            {
                hash ^= DeploymentName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #3
0
 public override int GetHashCode()
 {
     unchecked {
         return ((DeploymentId != null ? DeploymentId.GetHashCode() : 0) * 397) ^
                (Name != null ? Name.GetHashCode() : 0);
     }
 }
        public override int GetHashCode()
        {
            int result = DeploymentId != null?DeploymentId.GetHashCode() : 0;

            result = 31 * result + (Role != null ? Role.GetHashCode() : 0);
            result = 31 * result + (RoleInstance != null ? RoleInstance.GetHashCode() : 0);
            result = 31 * result + (CounterName != null ? CounterName.GetHashCode() : 0);
            result = 31 * result + (int)(_eventTickCount ^ (_eventTickCount >> 32));
            return(result);
        }
예제 #5
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = (Key != null) ? Key.GetHashCode() : 0;
         // Suitable nullity checks etc, of course :)
         hash = (DeploymentId != null) ? hash * 17 + DeploymentId.GetHashCode() : hash;
         hash = (Name != null) ? hash * 17 + Name.GetHashCode() : hash;
         hash = (DefinitionKey != null) ? hash * 17 + DefinitionKey.GetHashCode() : hash;
         hash = (ProcessDefinitionDescription != null) ? hash * 17 + ProcessDefinitionDescription.GetHashCode() : hash;
         hash = (ProcessDefinitionResource != null) ? hash * 17 + ProcessDefinitionResource.GetHashCode() : hash;
         hash = (ProcessDefinitionDiagramResourceName != null) ? hash * 17 + ProcessDefinitionDiagramResourceName.GetHashCode() : hash;
         hash = hash * 17 + ProcessDefinitionHasStartFormKey.GetHashCode();
         hash = hash * 17 + ProcessDefinitionHasGraphicalNotation.GetHashCode();
         hash = hash * 17 + IsSuspended.GetHashCode();
         hash = (TenantId != null) ? hash * 17 + TenantId.GetHashCode() : hash;
         return(hash);
     }
 }