コード例 #1
0
 public void TransferToChinese(ref MoneyContext context, MoneyExpression prior = null)
 {
     if (context.GetNumIntList().Count == 0)
         return;
     MoneyExpression expression = new NumericExpression((NumericExpression)prior);
     expression.Interpret(context);
     context.GetNumIntList().RemoveFirst();
     if (context.GetNumIntList().Count > 0)
     {
         this.TransferToChinese(ref context, expression);
     }
 }
コード例 #2
0
        public void TransferToChinese(ref MoneyContext context, MoneyExpression prior = null)
        {
            if (context.GetNumIntList().Count == 0)
            {
                return;
            }
            MoneyExpression expression = new NumericExpression((NumericExpression)prior);

            expression.Interpret(context);
            context.GetNumIntList().RemoveFirst();
            if (context.GetNumIntList().Count > 0)
            {
                this.TransferToChinese(ref context, expression);
            }
        }
コード例 #3
0
 public NumericExpression(NumericExpression prior)
 {
     this.prior = prior;
     number     = new NumberExpression(prior == null ? null : prior.GetNE());
     unit       = new UnitExpression(number);
 }
コード例 #4
0
 public NumericExpression(NumericExpression prior)
 {
     this.prior = prior;
     number = new NumberExpression(prior == null ? null : prior.GetNE());
     unit = new UnitExpression(number);
 }