예제 #1
0
 public static bool CompileProgram(string program, List <string> errors, ref Assembly assembly)
 {
     if (program != null && program.Length > 0)
     {
         string finalCode = CODE_WRAPPER_BEFORE + program + CODE_WRAPPER_AFTER;
         if (true == IlCompiler.CompileString("IngameScript.dll", new string[] { finalCode }, out assembly, errors))
         {
             return(true);
         }
     }
     return(false);
 }