Ejemplo n.º 1
0
	/// <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;
	}
Ejemplo n.º 2
0
        /// <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);
        }