/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
- // Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
- // This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
- using ICSharpCode.NRefactory.CSharp;
- namespace ICSharpCode.ILSpy.Debugger.Models.TreeModel
- {
- internal class IListNode : TreeNode
- {
- Expression targetObject;
- int count;
-
- public IListNode(Expression targetObject)
- {
- this.targetObject = targetObject;
-
- this.Name = "IList";
- this.count = Utils.GetIListCount(this.targetObject);
- this.ChildNodes = Utils.LazyGetItemsOfIList(this.targetObject);
- }
-
- public override bool HasChildNodes {
- get { return this.count > 0; }
- }
- }
- }