test/Misc/EFTools/TestInfrastructure/VS/DteExtensions.cs
/// <summary>
///     Project with a given name, or null.
/// </summary>
/// <param name="name">project name</param>
Project with a given name, or null.
Project with a given name or null .
public static Project FindProject(this DTE dte, string name)
        {
            Debug.Assert(dte != null, "FindProject: Dte is null");
            Debug.Assert(!string.IsNullOrEmpty(name));
            foreach (Project project in dte.Solution.Projects)
            {
                if (project.Name.Equals(name))
                {
                    return project;
                }
            }
            return null;
        }
public static Project FindProject ( this DTE dte , string name ) { Debug . Assert ( dte != null , " " ) ; Debug . Assert ( ! string . IsNullOrEmpty ( name ) ) ; foreach ( Project project in dte . Solution . Projects ) { if ( project . Name . Equals ( name ) ) { return project ; } } return null ; }
Project with a given name, or null.
Project with a given name or null .
DTE
this
name
string
None