Exemplo n.º 1
0
        public static IEnumerable <ClrGraphNode> CreateForChildren(ClrObject startObject)
        {
            var instance  = new ClrGraph();
            var firstNode = new ClrGraphNode(instance, startObject);

            instance.StartObject = firstNode;
            return(firstNode.Children);
        }
Exemplo n.º 2
0
        public static ClrGraphNode CreateForSelf(ClrObject startObject)
        {
            var instance  = new ClrGraph();
            var firstNode = new ClrGraphNode(instance, startObject);

            instance.StartObject = firstNode;
            return(firstNode);
        }
Exemplo n.º 3
0
        internal ClrGraphNode(ClrGraph owner, ClrObject startObject)
        {
            _owner    = owner;
            this.Self = startObject;
            if (_owner.Visited.Contains(startObject.Address))
            {
                IsAlreadyVisited = true;
                return;
            }

            PopulateChildren(startObject);
        }