From af0f9cbdd561ba5e86c04bd40027e46dd74abad5 Mon Sep 17 00:00:00 2001 From: mkonicek Date: Tue, 12 Apr 2011 19:27:08 +0200 Subject: [PATCH] Fixed a bug in ObjectGraphBuilder caused by recently added "Properties first, then fields" sorting. --- .../Visualizers/Graph/ObjectGraph/ObjectGraphBuilder.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/ObjectGraph/ObjectGraphBuilder.cs b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/ObjectGraph/ObjectGraphBuilder.cs index 97e8d498c5..fd9cb717bc 100644 --- a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/ObjectGraph/ObjectGraphBuilder.cs +++ b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/ObjectGraph/ObjectGraphBuilder.cs @@ -178,11 +178,12 @@ namespace Debugger.AddIn.Visualizers.Graph { thisObject = thisObject.CastToIList(); int listCount = thisObject.GetIListCount(); + PropertyInfo indexerProp = iListType.GetProperty("Item"); for (int i = 0; i < listCount; i++) { Expression itemExpr = thisObject.AppendIndexer(i); PropertyNode itemNode = new PropertyNode( - new ObjectGraphProperty { Name = "[" + i + "]", Expression = itemExpr, Value = "", IsAtomic = true, TargetNode = null }); + new ObjectGraphProperty { Name = "[" + i + "]", MemberInfo = indexerProp, Expression = itemExpr, Value = "", IsAtomic = true, TargetNode = null }); node.AddChild(itemNode); } }