Exemplo n.º 1
0
    private static CompilerMessage[] CompileCSharp()
    {
        var supportedLanguage = (SupportedLanguage)Activator.CreateInstance(typeof(CSharpLanguage));
        var island            = CreateMonoIsland(supportedLanguage);

        using (var compiler = new MonoCSharpCompiler(island, false))
        {
            return(Compile(compiler, island));
        }
    }
Exemplo n.º 2
0
 public static string[] CompileCSharp(string[] sources, string[] references, string[] defines, string outputFile)
 {
     return(MonoCSharpCompiler.Compile(sources, references, defines, outputFile));
 }