Created
July 29, 2015 18:12
-
-
Save philipproplesch/88540038e0d446c93769 to your computer and use it in GitHub Desktop.
FindProjectItem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Linq; | |
using EnvDTE; | |
namespace NodeStudio.VisualStudio.Wizards.Extensions | |
{ | |
public static class ProjectItemsExtensions | |
{ | |
public static ProjectItem FindProjectItem( | |
this IEnumerable instance, | |
Func<ProjectItem, bool> predicate) | |
{ | |
return instance.Cast<ProjectItem>().FirstOrDefault(predicate); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment