/// <summary> /// Adds the elements of another ContentFilterCollection to the end of this ContentFilterCollection. /// </summary> /// <param name="items"> /// The ContentFilterCollection whose elements are to be added to the end of this ContentFilterCollection. /// </param> public virtual void AddRange(ContentFilterCollection items) { foreach (ContentFilter item in items) { this.List.Add(item); } }
private void LoadFilters() { SiteConfig siteConfig = SiteConfig.GetSiteConfig(SiteConfig.GetConfigFilePathFromCurrentContext()); contentFilters = new ContentFilterCollection(siteConfig.ContentFilters); checkFilterHtml.Checked = siteConfig.ApplyContentFiltersToWeb; checkFilterRSS.Checked = siteConfig.ApplyContentFiltersToRSS; }
public Enumerator(ContentFilterCollection collection) { this.wrapped = ((CollectionBase) collection).GetEnumerator(); }
/// <summary> /// Initializes a new instance of the ContentFilterCollection class, containing elements /// copied from another instance of ContentFilterCollection /// </summary> /// <param name="items"> /// The ContentFilterCollection whose elements are to be added to the new ContentFilterCollection. /// </param> public ContentFilterCollection(ContentFilterCollection items) { this.AddRange(items); }
public Enumerator(ContentFilterCollection collection) { this.wrapped = ((CollectionBase)collection).GetEnumerator(); }