Exemplo n.º 1
0
        public bool Remove(Regex regex)
        {
            if (!Wrapped.Contains((s) => s.Equals(regex)))
            {
                return(false);
            }

            return(Wrapped.Remove(regex));
        }
Exemplo n.º 2
0
        public bool Add(Regex regex)
        {
            if (Wrapped.Contains((s) => s.Equals(regex)))
            {
                return(false);
            }

            Wrapped.Add(regex);
            return(true);
        }
Exemplo n.º 3
0
 bool ICollection <KeyValuePair <TKey, TValue> > .Contains(KeyValuePair <TKey, TValue> item)
 {
     return(Wrapped.Contains(item));
 }
 /// <summary>
 /// Determines whether the <see cref="ICollection{T}"/> contains a specific
 /// value.
 /// </summary>
 ///
 /// <returns>
 /// true if item is found in the <see cref="ICollection{T}"/>; otherwise, false.
 /// </returns>
 ///
 /// <param name="item">
 /// The object to locate in the <see cref="ICollection{T}"/>.
 /// </param>
 public override bool Contains(KeyValuePair <TKey, TValue> item)
 {
     return(Wrapped.Contains(item));
 }