Mono.CSharp.Evaluator.Run Method
Executes the given expression or statement.

Syntax

public static bool Run (string statement)

Parameters

statement
A statement to execute.

Returns

True if the code was succesfully parsed.

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\");
	      

Requirements

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