Hi, like that:
var CodeToRun = "var r = 1 + 1;";
string _sourceCodeIQuesterCondition =
@"using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Threading;
using robotManager;
using robotManager.FiniteStateMachine;
using robotManager.Helpful;
using wManager.Wow.Class;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;
using Timer = robotManager.Helpful.Timer;
using wManager.Wow.Enums;
public class Main
{
public static void Pulse()
{
[RUNCODE];
}
}";
string error;
if (!robotManager.Helpful.RunCode.CompileAndInvokeStaticMethod(RunCode.CodeType.CSharp, _sourceCodeIQuesterCondition.Replace("[RUNCODE]", CodeToRun), "Main", "Pulse", out error))
Logging.WriteError(error);