Example #1
0
        void AddChild(ITreeBuilder treeBuilder, object dataObject)
        {
            ChildNodes.Add(dataObject);

            if (dataObject is AssemblyDependenciesNode assemblyDependencies)
            {
                AssemblyDependencies = assemblyDependencies;
            }
            else if (dataObject is PackageDependenciesNode packageDependencies)
            {
                PackageDependencies = packageDependencies;
            }
            else if (dataObject is ProjectDependenciesNode projectDependencies)
            {
                ProjectDependencies = projectDependencies;
            }
            else if (dataObject is SdkDependenciesNode sdkDependencies)
            {
                SdkDependencies = sdkDependencies;
            }
            else if (dataObject is TargetFrameworkNode targetFramework)
            {
                TargetFrameworks.Add(targetFramework);
            }
            else if (dataObject is FrameworkReferencesNode frameworkReferences)
            {
                FrameworkReferences = frameworkReferences;
            }
        }
Example #2
0
        void AddChild(ITreeBuilder treeBuilder, object dataObject)
        {
            ChildNodes.Add(dataObject);

            if (dataObject is AssemblyDependenciesNode assemblyDependencies)
            {
                AssemblyDependencies = assemblyDependencies;
            }
            else if (dataObject is PackageDependenciesNode packageDependencies)
            {
                PackageDependencies = packageDependencies;
            }
            else if (dataObject is ProjectDependenciesNode projectDependencies)
            {
                ProjectDependencies = projectDependencies;
            }
            else if (dataObject is SdkDependenciesNode sdkDependencies)
            {
                SdkDependencies = sdkDependencies;
            }
        }