Example #1
0
        protected override async Task <IList <ObjectValueNode> > OnLoadChildrenAsync(CancellationToken cancellationToken)
        {
            var children = await GetChildrenAsync(DebuggerObject, cancellationToken);

            var nodes = new ObjectValueNode[children.Length];

            for (int i = 0; i < children.Length; i++)
            {
                nodes[i] = new DebuggerObjectValueNode(children[i]);
            }

            return(nodes);
        }
Example #2
0
        protected override async Task <Tuple <IList <ObjectValueNode>, bool> > OnLoadChildrenAsync(int index, int count, CancellationToken cancellationToken)
        {
            var children = await GetChildrenAsync(DebuggerObject, index, count, cancellationToken);

            var nodes = new ObjectValueNode[children.Length];

            for (int i = 0; i < children.Length; i++)
            {
                nodes[i] = new DebuggerObjectValueNode(children[i]);
            }

            // if we returned less that we asked for, we assume we've now loaded all children
            return(Tuple.Create <IList <ObjectValueNode>, bool> (nodes, children.Length < count));
        }
Example #3
0
        ObjectValueNode[] IEvaluatingGroupObjectValueNode.GetEvaluationGroupReplacementNodes()
        {
            var replacementNodes = new ObjectValueNode[DebuggerObject.ArrayCount];

            for (int i = 0; i < replacementNodes.Length; i++)
            {
                replacementNodes[i] = new DebuggerObjectValueNode(DebuggerObject.GetArrayItem(i))
                {
                    Parent = Parent
                };
            }

            return(replacementNodes);
        }