Exemplo n.º 1
0
        /// <summary>
        /// Find the <see cref="CompiledRegexBase"/> with the same <see cref="CompiledRegexBase.Name"/> and  <see cref="CompiledRegexBase.Namespace"/>.
        /// </summary>
        public T Find(string name, string fullnamespace)
        {
            foreach (var item in Items)
            {
                if (CompiledRegexBase.EqualsFullQualifiedName(item, name, fullnamespace))
                {
                    return((T)item);
                }
            }

            return(null);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Determines the index of a <see cref="CompiledRegexBase"/> with the same <see cref="CompiledRegexBase.Name"/> and  <see cref="CompiledRegexBase.Namespace"/>.
        /// </summary>
        public virtual int IndexOf(string name, string fullnamespace)
        {
            for (int i = 0; i < Items.Count; i++)
            {
                if (CompiledRegexBase.EqualsFullQualifiedName(Items[i], name, fullnamespace))
                {
                    return(i);
                }
            }

            return(-1);
        }