Microsoft.VisualStudio.Project.ProjectNode.AddDependentFileNodeToNode C# (CSharp) Method

AddDependentFileNodeToNode() private method

Add a dependent file node to the hierarchy
private AddDependentFileNodeToNode ( Microsoft.Build.Evaluation item, HierarchyNode parentNode ) : HierarchyNode
item Microsoft.Build.Evaluation msbuild item to add
parentNode HierarchyNode Parent Node
return HierarchyNode
        private HierarchyNode AddDependentFileNodeToNode(MSBuild.ProjectItem item, HierarchyNode parentNode)
        {
            FileNode node = this.CreateDependentFileNode(new ProjectElement(this, item, false));
            parentNode.AddChild(node);

            // Make sure to set the HasNameRelation flag on the dependent node if it is related to the parent by name
            if (!node.HasParentNodeNameRelation && string.Compare(node.GetRelationalName(), parentNode.GetRelationalName(), StringComparison.OrdinalIgnoreCase) == 0)
            {
                node.HasParentNodeNameRelation = true;
            }

            return node;
        }
ProjectNode