Exemplo n.º 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;
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public override CalculateExpression TryApply(CalculateExpression otherExpression) => otherExpression;
Exemplo n.º 4
0
 public override CalculateExpression TryApply(CalculateExpression otherExpression) => throw new NotSupportedException();
Exemplo n.º 5
0
 public override CalculateExpression TryApply(CalculateExpression otherExpression)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 6
0
 public abstract CalculateExpression TryApply(CalculateExpression otherExpression);
 public ParenthesisExpression(CalculateExpression baseExpression)
 {
     _baseExpression = baseExpression;
 }
 public override CalculateExpression TryApply(CalculateExpression otherExpression) => _baseExpression.TryApply(otherExpression);