Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (RuleName != null ? RuleName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RuleExpression != null ? RuleExpression.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Status;
         return(hashCode);
     }
 }
Exemple #2
0
 /// <summary>
 /// Gets a hash value for the current instance.
 /// </summary>
 /// <returns>The hash value.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = 17;
         hash = hash * 23 + ManifestValue.GetHashCode();
         hash = hash * 23 + RuleType.GetHashCode();
         hash = hash * 23 + (RuleName?.GetHashCode() ?? 0);
         return(hash);
     }
 }
Exemple #3
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (SchemaName != null ? SchemaName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SearchSchemaName != null ? SearchSchemaName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RuleName != null ? RuleName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsActive.GetHashCode();
         hashCode = (hashCode * 397) ^ UseAtSave.GetHashCode();
         hashCode = (hashCode * 397) ^ (RuleBody != null ? RuleBody.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemple #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = _operatorName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ _operatorValue;
         hashCode = (hashCode * 397) ^ (RuleName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Notes?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Order.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)Field;
         hashCode = (hashCode * 397) ^ (int)Status;
         return(hashCode);
     }
 }
 /// <summary>
 /// Get hash code.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ProjectName != null ? ProjectName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RuleName != null ? RuleName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Severity;
         hashCode = (hashCode * 397) ^ (FilePath != null ? FilePath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Line;
         hashCode = (hashCode * 397) ^ (DeepLink != null ? DeepLink.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Status;
         hashCode = (hashCode * 397) ^ FalsePositive.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (WorkCell != null ? WorkCell.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (WorkUnit != null ? WorkUnit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Actual.GetHashCode();
         hashCode = (hashCode * 397) ^ Remaining.GetHashCode();
         hashCode = (hashCode * 397) ^ Set.GetHashCode();
         hashCode = (hashCode * 397) ^ OverflowRemaining.GetHashCode();
         hashCode = (hashCode * 397) ^ OverflowSet.GetHashCode();
         hashCode = (hashCode * 397) ^ (RuleName != null ? RuleName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RuleType != null ? RuleType.GetHashCode() : 0);
         return(hashCode);
     }
 }