/// <summary> /// Adds an element with the specified key and value to this FilterDictionary. /// </summary> /// <param name="key"> /// The string key of the element to add. /// </param> /// <param name="value"> /// The Filter value of the element to add. /// </param> public virtual void Add(string key, Filter value) { this.Dictionary.Add(key, value); }
/// <summary> /// Determines whether this FilterDictionary contains a specific value. /// </summary> /// <param name="value"> /// The Filter value to locate in this FilterDictionary. /// </param> /// <returns> /// true if this FilterDictionary contains an element with the specified value; /// otherwise, false. /// </returns> public virtual bool ContainsValue(Filter value) { foreach (Filter item in this.Dictionary.Values) { if (item == value) return true; } return false; }