public bool TryGetValue(string key, out BundleFileCollection value) { BundleFileCollection collection; var val = _bundles.TryGetValue(key, out collection); value = val ? collection : null; return val; }
public BundleFileCollection Create(string bundleName, PreProcessPipeline pipeline, params CssFile[] cssFiles) { foreach (var file in cssFiles) { if (file.Pipeline == null) { file.Pipeline = pipeline; } } var collection = new BundleFileCollection(new List<IWebFile>(cssFiles)); _bundles.TryAdd(bundleName, collection); return collection; }
public BundleFileCollection Create(string bundleName, params CssFile[] cssFiles) { var collection = new BundleFileCollection(new List<IWebFile>(cssFiles)); _bundles.TryAdd(bundleName, collection); return collection; }