/// <summary> /// 对整个程序集进行编译 /// </summary> /// <returns></returns> public Assembly Complier() { if (!HasChecked) { Check(); } Assembly = Options.GetAssembly(); return(Assembly); }
/// <summary> /// 对整个程序集进行编译 /// </summary> /// <returns></returns> public Assembly Complier() { Check(); Assembly = Options.GetAssembly(); var types = Assembly.GetTypes(); foreach (var item in types) { TypeCache[item.GetDevelopName()] = item; } return(Assembly); }
public static void Deconstruct( this string script, out Assembly Assembly, out Type[] Types, out CompilationException Error) { AssemblyComplier assembly = new AssemblyComplier(); assembly.Add(script); Assembly = assembly.GetAssembly(); Types = Assembly.GetTypes(); Error = assembly.ComplieException; }