System.Security.Util.StringExpressionSet.StringSubsetStringExpressionPathDiscovery C# (CSharp) Method

StringSubsetStringExpressionPathDiscovery() protected static method

protected static StringSubsetStringExpressionPathDiscovery ( String left, StringExpressionSet right, bool ignoreCase ) : bool
left String
right StringExpressionSet
ignoreCase bool
return bool
        protected static bool StringSubsetStringExpressionPathDiscovery( String left, StringExpressionSet right, bool ignoreCase )
        {
            for (int index = 0; index < right.m_list.Count; ++index)
            {
                if (StringSubsetStringPathDiscovery( left, (String)right.m_list[index], ignoreCase ))
                {
                    return true;
                }
            }
            return false;
        }

Usage Example

Example #1
0
 public bool IsSubsetOfPathDiscovery(StringExpressionSet ses)
 {
     if (this.IsEmpty())
     {
         return(true);
     }
     if (ses == null || ses.IsEmpty())
     {
         return(false);
     }
     this.CheckList();
     ses.CheckList();
     for (int i = 0; i < this.m_list.Count; i++)
     {
         if (!StringExpressionSet.StringSubsetStringExpressionPathDiscovery((string)this.m_list[i], ses, this.m_ignoreCase))
         {
             return(false);
         }
     }
     return(true);
 }