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())); } }
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())); } }