Beispiel #1
0
 /// <summary>
 /// Equals() - pro použití GID v Hashtabulkách
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public override bool Equals(object obj)
 {
     if (!(obj is Fraction))
     {
         return(false);
     }
     return(Fraction._IsEqual(this, (Fraction)obj));
 }
Beispiel #2
0
 /// <summary>
 /// Operátor "není rovno"
 /// </summary>
 /// <param name="a"></param>
 /// <param name="b"></param>
 /// <returns></returns>
 public static bool operator !=(Fraction a, Fraction b)
 {
     return(!Fraction._IsEqual(a, b));
 }