Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4822 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
4 changed files with 83 additions and 33 deletions
@ -0,0 +1,34 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Martin Koníček" email="martin.konicek@gmail.com"/>
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
using Debugger.MetaData; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using Debugger.AddIn.Visualizers.Utils; |
||||||
|
using ICSharpCode.NRefactory.Ast; |
||||||
|
|
||||||
|
namespace Debugger.AddIn.TreeModel |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// IEnumerable node in the variable tree.
|
||||||
|
/// </summary>
|
||||||
|
public class IEnumerableNode : TreeNode |
||||||
|
{ |
||||||
|
Expression targetObject; |
||||||
|
Expression debugListExpression; |
||||||
|
|
||||||
|
public IEnumerableNode(Expression targetObject, DebugType itemType) |
||||||
|
{ |
||||||
|
this.targetObject = targetObject; |
||||||
|
|
||||||
|
this.Name = "IEnumerable"; |
||||||
|
DebugType debugListType; |
||||||
|
this.debugListExpression = DebuggerHelpers.CreateDebugListExpression(targetObject, itemType, out debugListType); |
||||||
|
this.ChildNodes = Utils.LazyGetItemsOfIList(this.debugListExpression); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue