Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 37;
         hash = hash * 23 + ParameterName.GetHashCode();
         return(hash);
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = TypeName.GetHashCode();
         hashCode = (hashCode * 397) ^ ParameterName.GetHashCode();
         hashCode = (hashCode * 397) ^ EnumMember.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="T:System.Object"/>.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         var hashCode = ParameterName.GetHashCode();
         hashCode = (hashCode * 397) ^ Position.GetHashCode();
         hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     // Courtesy of http://stackoverflow.com/a/263416
     unchecked                 // Overflow is fine, just wrap
     {
         // Note: Don't include the parameter size in the hash code, size is complicated (see the AreSizesEquivalent method for more info)
         var hash = (int)2166136261;
         hash = (hash * 16777619) ^ ParameterName.GetHashCode();
         hash = (hash * 16777619) ^ ((Value == null) ? 0 : Value.GetHashCode());
         hash = (hash * 16777619) ^ DbType.GetHashCode();
         hash = (hash * 16777619) ^ IsNullable.GetHashCode();
         hash = (hash * 16777619) ^ Direction.GetHashCode();
         hash = (hash * 16777619) ^ Scale.GetHashCode();
         return(hash);
     }
 }
Esempio n. 5
0
 public override int GetHashCode()
 {
     return(ParameterName.GetHashCode());
 }
Esempio n. 6
0
 public override int GetHashCode() => CriteriaAnalysis.Aggregate(ParameterName.GetHashCode(), (current, field) => current ^ field.GetHashCode());
Esempio n. 7
0
 /// <inheritdoc />
 public override int GetHashCode() => ParameterName.GetHashCode();
Esempio n. 8
0
 public override int GetHashCode()
 {
     return(ParameterName.GetHashCode() +
            (Value != null ?Value.GetHashCode():0));
 }