1 Star 0 Fork 33

星尘/NScript

forked from 车江毅/NScript 
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
AssemblyCompiler.cs 925 Bytes
Copy Edit Raw Blame History
车江毅 authored 2016-06-24 10:21 +08:00 . add project
using BSF.BaseService.NScript.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace BSF.BaseService.NScript.Compiler
{
public class AssemblyCompiler : BaseCompiler
{
private static CompilerCache cache = new CompilerCache();
public override Core.CompilerResult DoCompiler(CompilerInfo compilerInfo)
{
compilerInfo.EnumCompilerMode = EnumCompilerMode.Assembly;
return cache.GetOrAdd(compilerInfo.GetHashCode(), () =>
{
var assembly = new DynamicCompilerProvider().Compiler(compilerInfo);
var result = new CompilerResult();
result.EnumCompilerMode = EnumCompilerMode.Assembly;
result.Assembly = assembly;
result.AppDomianInfo = null;
return result;
});
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xingchensoft/NScript.git
git@gitee.com:xingchensoft/NScript.git
xingchensoft
NScript
NScript
master

Search