Beispiel #1
0
        public void AddOperation(ExpressionOperation operation)
        {
            var element = expression.Get();

            if (element is ExpressionOperation)
            {
                UpdateOperation(operation);
            }
            else
            {
                expression.Add(operation);
            }
        }
Beispiel #2
0
        /// ------------ Private ------------

        private void UpdateOperation(ExpressionOperation operation)
        {
            expression.Update(expression.Count() - 1, operation);
        }