// create an EvaluationOptions object var evalOptions = new EvaluationOptions (); // set the frame property to evaluate in the current stack frame evalOptions.Frame = _session.StackFrames.First (); // evaluate the expression and return the result var result = _session.Evaluation.Evaluate ("x + y", evalOptions);
// create an EvaluationOptions object var evalOptions = new EvaluationOptions (); // set the Async property to true evalOptions.Async = true; // evaluate the expression asynchronously and return a task var task = _session.Evaluation.EvaluateAsync ("x + y", evalOptions); // wait for the task to complete and get the result var result = task.Result;These examples likely use the Mono.Debugging.Client library, which is a part of the Mono framework. This package provides debugging support for Mono applications and is commonly used in IDEs such as MonoDevelop.