Beispiel #1
0
            public override int GetHashCode()
            {
                var hashCode = -676658667;

                hashCode = hashCode * -1521134295 + EqualityComparer <object> .Default.GetHashCode(Target);

                hashCode = hashCode * -1521134295 + Type.GetHashCode();
                return(hashCode);
            }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = (hash * 23) + BindingType.GetHashCode();
         hash = (hash * 23) + (SearchScope != null ? SearchScope.GetHashCode() : 0);
         hash = (hash * 23) + IsSynonymMatch.GetHashCode();
         hash = (hash * 23) + (string.IsNullOrEmpty(Value) ? 0 : StringComparer.OrdinalIgnoreCase.GetHashCode(Value));
         return(hash);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.</returns>
 public override int GetHashCode()
 {
     return(HASHCODE_MULTIPLIER * BindingType.GetHashCode() + IsMember.GetHashCode() + qualifier.GetHashCode());
 }