/// <summary> /// Finds all the project nodes in the solution. /// </summary> /// <param name="solution">The solution to traverse.</param> /// <returns>All project nodes that were found.</returns> public static IEnumerable<IProjectNode> FindProjects (this ISolutionNode solution) { var visitor = new ProjectsVisitor(); solution.Accept (visitor); return visitor.Projects; }
/// <summary> /// Finds all the project nodes in the solution. /// </summary> /// <param name="solution">The solution to traverse.</param> /// <returns>All project nodes that were found.</returns> public static IEnumerable <IProjectNode> FindProjects(this ISolutionNode solution) { var visitor = new ProjectsVisitor(); solution.Accept(visitor); return(visitor.Projects); }