/// <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); }
/// <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); }