Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         // ReSharper disable once NonReadonlyMemberInGetHashCode
         return((Real.GetHashCode() * 397) ^ Imaginar.GetHashCode());
     }
 }
Ejemplo n.º 2
0
 protected bool Equals(Complex other)
 {
     return(Real.Equals(other.Real) && Imaginar.Equals(other.Imaginar));
 }