Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Re.GetHashCode() * 397) ^ Im.GetHashCode());
     }
 }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 371;

            hash += 117 * Re.GetHashCode() + 23 * Im.GetHashCode();
            return(hash);
        }
 public override int GetHashCode()
 {
     // Don't ask me why shift 2,not anything else!
     // I found this practice on various Codes including
     // official documentations so used this
     return((Re.GetHashCode() << 2) ^ Im.GetHashCode());
 }
Пример #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(Im.GetHashCode() * 16777619 + Re.GetHashCode());
     }
 }
        public override int GetHashCode()
        {
            var hashCode = 29377563;

            hashCode = hashCode * -1521134295 + Re.GetHashCode();
            hashCode = hashCode * -1521134295 + Im.GetHashCode();
            return(hashCode);
        }
Пример #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         // ReSharper disable once NonReadonlyMemberInGetHashCode
         return((Re.GetHashCode() * 397) ^ Im.GetHashCode());
     }
 }
Пример #7
0
 /// <summary>
 /// Returns the hashcode for this instance.
 /// </summary>
 ///
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode()
 {
     return(Re.GetHashCode() ^ Im.GetHashCode());
 }
 // GetHashCode.
 public override int GetHashCode()
 {
     return(Re.GetHashCode() ^ (Re + Im).GetHashCode());
 }
Пример #9
0
 public override int GetHashCode()
 {
     return(Re.GetHashCode() ^ (Im.GetHashCode() >> 16));
 }