Browse Source
- ObjectGraphBuilder evaluates properties first and then fields. - Some refactoring of GetIListCount() and other minor refactorings. - Experiments with penalization in Edge routing, so that edges tend to pick disjoint paths. Not working yet, commented out.pull/15/head
18 changed files with 146 additions and 90 deletions
@ -0,0 +1,36 @@
@@ -0,0 +1,36 @@
|
||||
// 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 System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System; |
||||
using System.Reflection; |
||||
|
||||
namespace Debugger.AddIn.Visualizers.Graph |
||||
{ |
||||
/// <summary>
|
||||
/// Compares members - .NET properties come before .NET fields.
|
||||
/// </summary>
|
||||
public sealed class PropertiesFirstComparer : IComparer<MemberInfo> |
||||
{ |
||||
private static PropertiesFirstComparer instance = new PropertiesFirstComparer(); |
||||
|
||||
public static PropertiesFirstComparer Instance { |
||||
get { |
||||
return instance; |
||||
} |
||||
} |
||||
|
||||
private PropertiesFirstComparer() |
||||
{ |
||||
} |
||||
|
||||
public int Compare(MemberInfo x, MemberInfo y) |
||||
{ |
||||
if ((x is PropertyInfo) && (y is FieldInfo)) return -1; |
||||
if ((y is PropertyInfo) && (x is FieldInfo)) return 1; |
||||
return x.Name.CompareTo(y.Name); |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the BSD license (for details please see \src\AddIns\Debugger\Debugger.AddIn\license.txt)
|
||||
|
||||
using System; |
||||
|
||||
namespace Debugger.AddIn.Visualizers.Graph |
||||
{ |
||||
/// <summary>
|
||||
/// Contains "Raw view" of collection properties in ObjectGraph.
|
||||
/// </summary>
|
||||
public class RawViewNode : AbstractNode |
||||
{ |
||||
public RawViewNode() |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue