public MonoExpression(MonoEngine engine, MonoThread thread, string expression, ObjectValue value) { _engine = engine; _thread = thread; _value = value; Expression = expression; }
public MonoStackFrame(MonoEngine engine, MonoThread thread, Func <StackFrame> frame) { _engine = engine; _thread = thread; _frame = frame; var allLocals = frame().GetAllLocals(EvaluationOptions.DefaultOptions); _parameters = frame().GetParameters(EvaluationOptions.DefaultOptions); _locals = allLocals.Where(x => _parameters.All(y => y.Name != x.Name)).ToArray(); _hasSource = frame().HasDebugInfo; _functionName = frame().SourceLocation.MethodName; _documentName = frame().SourceLocation.FileName; }