You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
898 B
28 lines
898 B
// 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 ICSharpCode.NRefactory.Ast; |
|
|
|
namespace Debugger.AddIn.Visualizers.Graph |
|
{ |
|
/// <summary> |
|
/// NRefactory Expression plus a method that can evaluate it, |
|
/// as the Debugger does not support evaluating NRefactory expressions directly. |
|
/// </summary> |
|
public class GraphExpression |
|
{ |
|
public Expression Expr { get; set; } |
|
public Func<Value> GetValue { get; set; } |
|
|
|
public GraphExpression(Expression expr, Func<Value> getValue) |
|
{ |
|
if (expr == null) throw new ArgumentNullException("expr"); |
|
if (getValue == null) throw new ArgumentNullException("getValue"); |
|
this.Expr = expr; |
|
this.GetValue = getValue; |
|
} |
|
} |
|
}
|
|
|