Exemple #1
0
        public DocumentTreeNodeData Create(ModuleDef module, Resource resource, ITreeNodeGroup treeNodeGroup)
        {
            if (module is null)
            {
                throw new ArgumentNullException(nameof(module));
            }
            if (resource is null)
            {
                throw new ArgumentNullException(nameof(resource));
            }
            if (treeNodeGroup is null)
            {
                throw new ArgumentNullException(nameof(treeNodeGroup));
            }
            var node = CreateNode(module, resource, treeNodeGroup);

            ResourceNode.AddResource(node, resource);
            return(node);
        }