PageRenderTime 11ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Debugger/ILSpy.Debugger/Models/TreeModel/IListNode.cs

http://github.com/icsharpcode/ILSpy
C# | 25 lines | 19 code | 4 blank | 2 comment | 0 complexity | 8027f0d057de9a3717cac6bc865af731 MD5 | raw file
 1// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 2// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 3using ICSharpCode.NRefactory.CSharp;
 4
 5namespace ICSharpCode.ILSpy.Debugger.Models.TreeModel
 6{
 7	internal class IListNode : TreeNode
 8	{
 9		Expression targetObject;
10		int count;
11		
12		public IListNode(Expression targetObject)
13		{
14			this.targetObject = targetObject;
15			
16			this.Name = "IList";
17			this.count = Utils.GetIListCount(this.targetObject);
18			this.ChildNodes = Utils.LazyGetItemsOfIList(this.targetObject);
19		}
20		
21		public override bool HasChildNodes {
22			get { return this.count > 0; }
23		}
24	}
25}