コード例 #1
0
ファイル: ByteProxyFactory.cs プロジェクト: semyonc/xpath2
        public override int Compare(ValueProxyFactory other)
        {
            switch (other.GetValueCode())
            {
            case SByteProxyFactory.Code:
                return(1);

            case ByteProxyFactory.Code:
                return(0);

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

            default:
                return(-2);
            }
        }
コード例 #2
0
 public override int Compare(ValueProxyFactory other)
 {
     if (other.GetValueCode() == Code)
     {
         return(0);
     }
     return(-2);
 }