Exemplo n.º 1
0
        public static IEnumerable <AlgebraExpression> DescendantsAndSelf(this AlgebraExpression expression)
        {
            yield return(expression);

            foreach (var descendant in expression.Descendants())
            {
                yield return(descendant);
            }
        }