コード例 #1
0
ファイル: Project.cs プロジェクト: gonzoMD/C64Studio
        public GR.Collections.Set <FileDependency.DependencyInfo> GetDependencies(ProjectElement Element)
        {
            var dependencies = new GR.Collections.Set <FileDependency.DependencyInfo>();

            foreach (var dependency in Element.ForcedDependency.DependentOnFile)
            {
                if (!dependencies.ContainsValue(dependency))
                {
                    dependencies.Add(dependency);

                    ProjectElement otherElement = GetElementByFilename(dependency.Filename);
                    if (otherElement != null)
                    {
                        dependencies.Merge(GetDependencies(otherElement));
                    }
                }
            }
            return(dependencies);
        }