/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)
  3. using ICSharpCode.NRefactory.CSharp;
  4. namespace ICSharpCode.ILSpy.Debugger.Models.TreeModel
  5. {
  6. internal class IListNode : TreeNode
  7. {
  8. Expression targetObject;
  9. int count;
  10. public IListNode(Expression targetObject)
  11. {
  12. this.targetObject = targetObject;
  13. this.Name = "IList";
  14. this.count = Utils.GetIListCount(this.targetObject);
  15. this.ChildNodes = Utils.LazyGetItemsOfIList(this.targetObject);
  16. }
  17. public override bool HasChildNodes {
  18. get { return this.count > 0; }
  19. }
  20. }
  21. }