コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((AttributeName != null ? AttributeName.GetHashCode() : 0) * 397) ^ (int)Occur);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (HcName != null)
         {
             hashCode = hashCode * 59 + HcName.GetHashCode();
         }
         if (HcTags != null)
         {
             hashCode = hashCode * 59 + HcTags.GetHashCode();
         }
         if (HcMbeanName != null)
         {
             hashCode = hashCode * 59 + HcMbeanName.GetHashCode();
         }
         if (MbeanName != null)
         {
             hashCode = hashCode * 59 + MbeanName.GetHashCode();
         }
         if (AttributeName != null)
         {
             hashCode = hashCode * 59 + AttributeName.GetHashCode();
         }
         if (AttributeValueConstraint != null)
         {
             hashCode = hashCode * 59 + AttributeValueConstraint.GetHashCode();
         }
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            const int constant = 197;

            return(AttributeName.GetHashCode() * constant
                   + ValueType.GetHashCode()
                   + SerializedEnumValues.GetHashCode()
                   + EnumValues.GetHashCode());
        }
コード例 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         // ReSharper disable NonReadonlyMemberInGetHashCode
         return(((AttributeName != null ? AttributeName.GetHashCode(StringComparison.Ordinal) : 0) * 397) ^
                (Value != null ? Value.GetHashCode() : 0));
         // ReSharper restore NonReadonlyMemberInGetHashCode
     }
 }
コード例 #5
0
        public override int GetHashCode()
        {
            var hash = 13;

            hash *= 7;
            hash += AttributeName.GetHashCode();

            hash *= 7;
            hash += Direction.GetHashCode();

            return(hash);
        }
コード例 #6
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (Mode != null ? Mode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Schema != null ? Schema.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ParentApplication != null ? ParentApplication.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ParentSchema != null ? ParentSchema.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AttributeName != null ? AttributeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ParentMode != null ? ParentMode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MetadataId != null ? MetadataId.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #7
0
        public override int GetHashCode()
        {
            int hashCode = -167354518;

            if (AttributeName != null)
            {
                hashCode += AttributeName.GetHashCode();
            }

            if (AttributePrefix != null)
            {
                hashCode += AttributePrefix.GetHashCode();
            }

            return(hashCode);
        }
コード例 #8
0
        public override int GetHashCode()
        {
            int hashCode = 478444029;

            if (AttributeName != null)
            {
                hashCode += AttributeName.GetHashCode();
            }

            if (AttributeValues != null)
            {
                hashCode += AttributeValues.GetHashCode();
            }

            return(hashCode);
        }
コード例 #9
0
        public override int GetHashCode()
        {
            int hashCode = -743751554;

            if (AttributeName != null)
            {
                hashCode += AttributeName.GetHashCode();
            }

            if (AttributeValue != null)
            {
                hashCode += AttributeValue.GetHashCode();
            }

            return(hashCode);
        }
コード例 #10
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (AttributeName != null)
         {
             hashCode = hashCode * 59 + AttributeName.GetHashCode();
         }
         if (IsRequired != null)
         {
             hashCode = hashCode * 59 + IsRequired.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #11
0
ファイル: Condition.cs プロジェクト: iskorotkov/non-std-query
        public override int GetHashCode()
        {
            var hash = 13;

            hash *= 7;
            hash += AttributeName.GetHashCode();

            hash *= 7;
            hash += Value.GetHashCode();

            hash *= 7;
            hash += Operation.GetHashCode();

            hash *= 7;
            hash += Link.GetHashCode();

            return(hash);
        }
コード例 #12
0
        public override int GetHashCode()
        {
            int hashCode = 946255455;

            if (AttributeName != null)
            {
                hashCode += AttributeName.GetHashCode();
            }

            if (AttributeMinValue != null)
            {
                hashCode += AttributeMinValue.GetHashCode();
            }

            if (AttributeMaxValue != null)
            {
                hashCode += AttributeMaxValue.GetHashCode();
            }

            return(hashCode);
        }
コード例 #13
0
        public override int GetHashCode()
        {
            int hashCode = -406098695;

            if (AttributeName != null)
            {
                hashCode += AttributeName.GetHashCode();
            }

            if (InitialAttributeValue != null)
            {
                hashCode += InitialAttributeValue.GetHashCode();
            }

            if (SortOrder != null)
            {
                hashCode += SortOrder.GetHashCode();
            }

            return(hashCode);
        }
コード例 #14
0
 public override int GetHashCode() => AttributeName.GetHashCode();
コード例 #15
0
 public override int GetHashCode()
 {
     return(AttributeName != null?AttributeName.GetHashCode() : 0);
 }