コード例 #1
0
        public override IValueOrder Parse(string type)
        {
            string[] ss = type.Split(UNDERLINE);
            NumberSequenceValueOrder orderValue = new NumberSequenceValueOrder();
            int i1 = NumberUtil.GetInt(ss[1]);
            int i2 = NumberUtil.GetInt(ss[2]);

            if (i1 > i2)
            {
                orderValue.SetMin(i2);
                orderValue.SetMax(i1);
                orderValue.SetDesc(true);
            }
            else
            {
                orderValue.SetMin(i1);
                orderValue.SetMax(i2);
                orderValue.SetDesc(false);
            }
            return(orderValue);
        }