1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the BSD license (for details please see \src\AddIns\Debugger\Debugger.AddIn\license.txt)
4
using Debugger.AddIn.Visualizers.Utils;
5
using ICSharpCode.NRefactory.Ast;
6
using System.Collections;
7
using System.Collections.Generic;
8
using Debugger.MetaData;
9
using ICSharpCode.SharpDevelop.Debugging;
10
using ICSharpCode.SharpDevelop.Services;
12
namespace Debugger.AddIn.TreeModel
14
public class IListNode : TreeNode
16
Expression targetList;
19
public IListNode(TreeNode parent, Expression targetListObject)
22
this.targetList = targetListObject;
25
this.listCount = this.targetList.GetIListCount();
26
this.childNodes = Utils.LazyGetItemsOfIList(this, this.targetList);
29
public override bool HasChildNodes {
30
get { return this.listCount > 0; }