Beispiel #1
0
        public static object Import(string assembly, Environment environment)
        {
            string   fn  = Path.GetFullPath(assembly);
            Assembly ass = AssemblyCache.LoadAssembly(fn);

            ass = Import(ass);
            if (ass != null)
            {
                environment.UpdateBindings();
                return(Path.GetFileName(fn));
            }
            else
            {
                return(null);
            }
        }