Esempio n. 1
0
 public static BigInteger operator +(BigInteger bi1, BigInteger bi2)
 {
     if (bi1 == 0)
     {
         return(new BigInteger(bi2));
     }
     if (bi2 == 0)
     {
         return(new BigInteger(bi1));
     }
     return(Kernel.AddSameSign(bi1, bi2));
 }
Esempio n. 2
0
 public static BigInteger operator +(BigInteger left, BigInteger right)
 {
     return(left == 0 ? right : (right == 0 ? left : Kernel.AddSameSign(left, right)));
 }