internal IEnumerable <T> GetAllItems <T> (string include, string exclude, Func <string, T> creator, Func <string, ITaskItem> taskItemCreator, Func <string, bool> itemTypeCheck, Action <T, string> assignRecurse) { return(ProjectCollection.GetAllItems <T> (ExpandString, include, exclude, creator, taskItemCreator, Directory, assignRecurse, t => all_evaluated_items.Any(i => i.EvaluatedInclude == t.ItemSpec && itemTypeCheck(i.ItemType)))); }