示例#1
0
 public static bool operator <=(DoubleExtention a, DoubleExtention b)
 {
     if (DoubleComparator.IsNotGreater(a, b))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
 public int CompareTo(object obj)
 {
     if (obj is DoubleExtention)
     {
         char sign = DoubleComparator.MathSignReturn((DoubleExtention)obj, this);
         if (sign == '=')
         {
             return(0);
         }
         if (sign == '>')
         {
             return(1);
         }
         if (sign == '<')
         {
             return(-1);
         }
     }
     else
     {
         throw new ArgumentException();
     }
     return(0);
 }
示例#3
0
 public static bool operator !=(DoubleExtention a, DoubleExtention b)
 {
     return(DoubleComparator.IsNotEqual(a, b));
 }