ClrPlus.Scripting.MsBuild.Utility.MsBuildMap.LookupItemDefinitionElement C# (CSharp) Method

LookupItemDefinitionElement() static private method

static private LookupItemDefinitionElement ( this pidge, string itemType ) : Microsoft.Build.Construction.ProjectItemDefinitionElement
pidge this
itemType string
return Microsoft.Build.Construction.ProjectItemDefinitionElement
        internal static ProjectItemDefinitionElement LookupItemDefinitionElement(this ProjectItemDefinitionGroupElement pidge, string itemType)
        {
            return pidge.Children.OfType<ProjectItemDefinitionElement>().FirstOrDefault( each => each.ItemType == itemType) ?? pidge.AddItemDefinition(itemType);
        }