Esempio n. 1
0
        public override int Compare(ValueProxyFactory other)
        {
            switch (other.GetValueCode())
            {
            case SByteProxyFactory.Code:
            case ByteProxyFactory.Code:
            case UShortFactory.Code:
            case ShortFactory.Code:
                return(1);

            case IntFactory.Code:
                return(0);

            case UIntFactory.Code:
            case ULongFactory.Code:
            case LongFactory.Code:
            case IntegerProxyFactory.Code:
            case DecimalProxyFactory.Code:
            case FloatFactory.Code:
            case DoubleProxyFactory.Code:
                return(-1);

            default:
                return(-2);
            }
        }
Esempio n. 2
0
 public override int Compare(ValueProxyFactory other)
 {
     if (other.GetValueCode() == Code)
     {
         return(0);
     }
     return(-2);
 }
Esempio n. 3
0
 public abstract int Compare(ValueProxyFactory other);