Beispiel #1
0
 public override bool Equals(object o)
 {
     if (o is Int32)
     {
         return(BigInt.EngineObject.Equals(Handle, (Int32)o));
     }
     if (o is Int64)
     {
         return(BigInt.EngineObject.Equals(Handle, (Int64)o));
     }
     if (o is BigInt)
     {
         return(BigInt.EngineObject.Equals(Handle, ((BigInt)o).Handle));
     }
     if (o is UInt32)
     {
         return(EngineObject.Equals(Handle, (UInt32)o));
     }
     if (o is UInt64)
     {
         return(EngineObject.Equals(Handle, (UInt64)o));
     }
     if (o is UBigInt)
     {
         return(EngineObject.Equals(Handle, ((UBigInt)o).Handle));
     }
     if (o is Rational)
     {
         return(Rational.EngineObject.Equals(Handle, ((Rational)o).Handle));
     }
     return(false);
 }
 public override bool Equals(object o)
 {
     if (o == null)
     {
         return(false);
     }
     if (o.GetType() == GetType())
     {
         return(EngineObject.Equals(Handle, ((UBigInt)o).Handle));
     }
     if (o.GetType() == typeof(UInt32))
     {
         return(EngineObject.Equals(Handle, (UInt32)o));
     }
     if (o.GetType() == typeof(UInt64))
     {
         return(EngineObject.Equals(Handle, (UInt64)o));
     }
     return(false);
 }
Beispiel #3
0
 public static bool operator ==(UInt64 u, UBigInt v)
 {
     return(EngineObject.Equals(u, v.Handle));
 }
Beispiel #4
0
 public static bool operator ==(UBigInt u, UInt64 v)
 {
     return(EngineObject.Equals(u.Handle, v));
 }
 public static bool Equals(UInt64 u, Rational v)
 {
     return(EngineObject.Equals(u, v.Handle));
 }
 public static bool Equals(Rational u, Int32 v)
 {
     return(EngineObject.Equals(u.Handle, v));
 }
 public bool Equals(Rational v)
 {
     return(EngineObject.Equals(Handle, v.Handle));
 }
 public static bool Equals(BigInt u, Rational v)
 {
     return(EngineObject.Equals(u.Handle, v.Handle));
 }
Beispiel #9
0
 public bool Equals(UInt64 v)
 {
     return(EngineObject.Equals(Handle, v));
 }
 public static bool operator !=(BigInt u, Int64 v)
 {
     return(!EngineObject.Equals(u.Handle, v));
 }
 public static bool operator ==(Rational u, UBigInt v)
 {
     return(EngineObject.Equals(u.Handle, v.Handle));
 }
 public static bool operator !=(Rational u, Rational v)
 {
     return(!EngineObject.Equals(u.Handle, v.Handle));
 }
 public static bool operator ==(Rational u, Int64 v)
 {
     return(EngineObject.Equals(u.Handle, v));
 }
 public static bool operator ==(UInt32 u, Rational v)
 {
     return(EngineObject.Equals(u, v.Handle));
 }
 public static bool Equals(UInt32 u, BigInt v)
 {
     return(EngineObject.Equals(u, v.Handle));
 }
Beispiel #16
0
 public static bool operator !=(UBigInt u, UBigInt v)
 {
     return(!EngineObject.Equals(u.Handle, v.Handle));
 }
 public static bool Equals(BigInt u, UInt64 v)
 {
     return(EngineObject.Equals(u.Handle, v));
 }
 public bool Equals(Int32 v)
 {
     return(EngineObject.Equals(Handle, v));
 }
 public static bool operator !=(Int64 u, BigInt v)
 {
     return(!EngineObject.Equals(u, v.Handle));
 }
Beispiel #20
0
 public static bool Equals(UBigInt u, UBigInt v)
 {
     return(EngineObject.Equals(u.Handle, v.Handle));
 }
 public bool Equals(BigInt v)
 {
     return(EngineObject.Equals(Handle, v.Handle));
 }