예제 #1
0
        public ExpressionCalculatedResult(Dictionary <string, MoneyColumnMetadataJsModel> columns, MoneyColumnMetadataJsModel h, Dictionary <MoneyColumnMetadataJsModel, CalculatedResult> deps) : base(h)
        {
            _deps = deps;
            var expression = Parse(columns, h, h.Function);

            _expression = expression;
        }
예제 #2
0
        public override CalculateExpression TryApply(CalculateExpression otherExpression)
        {
            if (Left == null)
            {
                Left = otherExpression;
            }
            else if (Right == null)
            {
                Right = otherExpression;
            }
            else
            {
                throw new NotSupportedException();
            }

            return(this);
        }
예제 #3
0
 public override CalculateExpression TryApply(CalculateExpression otherExpression) => otherExpression;
예제 #4
0
 public override CalculateExpression TryApply(CalculateExpression otherExpression) => throw new NotSupportedException();
예제 #5
0
 public override CalculateExpression TryApply(CalculateExpression otherExpression)
 {
     throw new NotImplementedException();
 }
예제 #6
0
 public abstract CalculateExpression TryApply(CalculateExpression otherExpression);
 public ParenthesisExpression(CalculateExpression baseExpression)
 {
     _baseExpression = baseExpression;
 }
 public override CalculateExpression TryApply(CalculateExpression otherExpression) => _baseExpression.TryApply(otherExpression);