public ProjectStatus GetProjectStatus(CodeProject project) { ProjectStatus status; if (!this.projectStatus.TryGetValue(project, out status)) { status = new ProjectStatus(); this.projectStatus.Add(project, status); } return status; }
/// <summary> /// Gets the analysis status for the given project. /// </summary> /// <param name="project">The project.</param> /// <returns>Returns the analysis status for the project.</returns> public ProjectStatus GetProjectStatus(CodeProject project) { Param.AssertNotNull(project, "project"); ProjectStatus status; if (!this.projectStatus.TryGetValue(project, out status)) { // Create a new status object and add add it to the dictionary. status = new ProjectStatus(); this.projectStatus.Add(project, status); } return status; }