Exemple #1
0
        /// <summary>
        /// 对整个程序集进行编译
        /// </summary>
        /// <returns></returns>
        public Assembly Complier()
        {
            if (!HasChecked)
            {
                Check();
            }


            Assembly = Options.GetAssembly();
            return(Assembly);
        }
Exemple #2
0
        /// <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);
        }
Exemple #3
0
        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;
        }