Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Re.GetHashCode() * 397) ^ Im.GetHashCode());
     }
 }
Exemplo n.º 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());
 }
Exemplo n.º 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);
        }
Exemplo n.º 6
0
 public override int GetHashCode()
 {
     unchecked
     {
         // ReSharper disable once NonReadonlyMemberInGetHashCode
         return((Re.GetHashCode() * 397) ^ Im.GetHashCode());
     }
 }
Exemplo n.º 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());
 }
Exemplo n.º 9
0
 public override int GetHashCode()
 {
     return(Re.GetHashCode() ^ (Im.GetHashCode() >> 16));
 }