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.
30 lines
694 B
30 lines
694 B
using EC.Helper.RabbitFunc.Runtime;
|
|
|
|
namespace EC.Helper.RabbitFunc.Expressions;
|
|
|
|
public class MemberExpression : Expression
|
|
{
|
|
internal MemberExpression(Expression instance, string name)
|
|
: base(ExpressionType.MemberAccess)
|
|
{
|
|
Instance = instance;
|
|
Name = name;
|
|
}
|
|
|
|
public Expression Instance { get; }
|
|
|
|
public string Name { get; }
|
|
|
|
public override object Eval(RuntimeContext context)
|
|
{
|
|
if (context == null)
|
|
throw new ArgumentNullException(nameof(context));
|
|
|
|
return default(double);
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return Instance == null ? Name : Instance.ToString() + "." + Name;
|
|
}
|
|
}
|