public virtual void ExceptWith(HtmlResources resources) { Assert.ArgumentNotNull(resources, "resources"); this.CssUrls.ExceptWith(resources.CssUrls); this.ScriptUrls.ExceptWith(resources.ScriptUrls); }
public HtmlResourcesContext(HttpContextBase httpContext, string contextKey, HtmlResources resources = null) { Assert.ArgumentNotNull(httpContext, "httpContext"); Assert.ArgumentNotNullOrEmpty(contextKey, "contextItems"); this.HttpContext = httpContext; this.ContextKey = contextKey; this.Resources = resources ?? new HtmlResources(); }
public virtual void UnionWith(HtmlResources resources) { Assert.ArgumentNotNull(resources, "resources"); this.CssUrls.UnionWith(resources.CssUrls); this.ScriptUrls.UnionWith(resources.ScriptUrls); foreach (string htmlBlock in resources.HtmlBlocks) { this.HtmlBlocks.Add(htmlBlock); } }