DTE.ProjectItem GetFirstChildItem(ProjectItems projectItems) { return projectItems.OfType<DTE.ProjectItem>().FirstOrDefault(); }
List<DTE.ProjectItem> GetAllChildItems(ProjectItems projectItems) { return projectItems.OfType<DTE.ProjectItem>().ToList(); }
DTE.ProjectItem GetChildItem(ProjectItems projectItems, string name) { return projectItems .OfType<DTE.ProjectItem>() .SingleOrDefault(item => item.Name == name); }