예제 #1
0
        private static void RegisterBundles(BundleCollection bundles, BundleElementCollection elements, Func <string, Bundle> bundle)
        {
            foreach (BundleElement element in elements)
            {
                List <string> files = new List <string>(element.Files.Count);

                foreach (FileElement file in element.Files)
                {
                    files.Add(file.VirtualPath);
                }

                bundles.Add(bundle(element.VirtualPath).Include(files.ToArray()));
            }
        }
예제 #2
0
        private static void RegisterBundles(BundleCollection bundles, BundleElementCollection elements, Func<string, Bundle> bundle)
        {
            foreach (BundleElement element in elements)
            {
                List<string> files = new List<string>(element.Files.Count);

                foreach (FileElement file in element.Files)
                {
                    files.Add(file.VirtualPath);
                }

                bundles.Add(bundle(element.VirtualPath).Include(files.ToArray()));
            }
        }