Mono Class Library: Mono.CSharp.Evaluator Overview | Members

Mono.CSharp.Evaluator.Run Method

Executes the given expression or statement. [Edit]

public static bool Run (string statement)

Parameters

statement
A statement to execute. [Edit]

Returns

True if the code was succesfully parsed. [Edit]

Remarks

Executes the provided statement, returns true on success, false on parsing errors. Exceptions might be thrown by the called code.

C# Example
      // First setup the active using statements:
      Evaluator.Run ("using System;");

      Evaluator.Run ("Console.WriteLine (\"Hello, World\");
	      

[Edit]

Requirements

Namespace: Mono.CSharp
Assembly: Mono.CSharp (in Mono.CSharp.dll)
Assembly Versions: 2.1.0.0