Exemple #1
0
        private IList <IPackageTree> GetAncestors(IList <IPackageTree> ancestorList)
        {
            ancestorList.Add(Node);

            if (Parent != null)
            {
                return(Parent.GetAncestors(ancestorList));
            }

            return(ancestorList);
        }
Exemple #2
0
 private bool HasACircularDependency(BuildTree tree, IPackageTree packageTree)
 {
     return tree.GetAncestors().Contains(packageTree);
 }
Exemple #3
0
 private bool HasACircularDependency(BuildTree tree, IPackageTree packageTree)
 {
     return(tree.GetAncestors().Contains(packageTree));
 }