예제 #1
0
        private static void PreloadAssemblies()
        {
            if (!ContextBuilder.PreloadAssemblies)
            {
                return;
            }

            var files = FileHelper.AllFilesInApplicationFolder().Where(f => f.Extension == ".dll");

            foreach (FileInfo f in files)
            {
                Assembly.LoadFrom(f.FullName);
            }
        }