Exemplo n.º 1
0
 public bool Contains(string key, WildCardCollection wildcards)
 {
     lock (this)
     {
         if (wildcards != null)
         {
             foreach (string wildcard in wildcards)
             {
                 if (Contains(key, wildcard))
                 {
                     return(true);
                 }
             }
             if (ItemNotFound != null)
             {
                 ItemNotFound(this, new HashItemSearchEventArgs(wildcards, key));
             }
         }
         else
         {
             return(base.ContainsKey(key));
         }
         return(false);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Get the list associated with a set of wildcards.
        /// </summary>
        /// <param name="extensions"></param>
        /// <returns></returns>
        internal List Get(WildCardCollection extensions)
        {
            List result = null;

            if (extensions != null && extensions.Count > 0)
            {
                result = new List();
                foreach (string ext in extensions)
                {
                    result.Add(Get(ext));
                }
                return(result);
            }
            return(Get("PATH"));
        }
Exemplo n.º 3
0
        public bool Contains(WildCardCollection collection)
        {
            bool success = false;

            if (collection != null)
            {
                foreach (string s in collection)
                {
                    if (this.Contains(s))
                    {
                        success = true;
                        break;
                    }
                }
            }
            return(success);
        }