using System.Web.Optimization; // Create a bundle for all CSS files var cssBundle = new StyleBundle("~/bundles/css"); cssBundle.Include("~/Content/Site.css"); cssBundle.Include("~/Content/Bootstrap.css"); // Create a bundle for all JavaScript files var jsBundle = new ScriptBundle("~/bundles/js"); jsBundle.Include("~/Scripts/jquery.js"); jsBundle.Include("~/Scripts/bootstrap.js"); // Define the collection and add the bundles var bundleCollection = new BundleCollection(); bundleCollection.Add(cssBundle); bundleCollection.Add(jsBundle);In this example, we create two bundles: one for CSS files and one for JavaScript files. We then add these bundles to a BundleCollection and give them unique names ("~/bundles/css" and "~/bundles/js" respectively). Overall, BundleCollection is a useful tool for managing resource files in web applications. By using bundles, we can improve the performance of our web pages and make them load faster for end users.