public static IEnumerable <AlgebraExpression> DescendantsAndSelf(this AlgebraExpression expression) { yield return(expression); foreach (var descendant in expression.Descendants()) { yield return(descendant); } }
public static IEnumerable <AlgebraExpression> DescendantsAndSelf(this AlgebraExpression expression) { yield return(expression); foreach (var descendant in expression.Descendants()) { yield return(descendant); } }