当前位置: 首页>>代码示例>>C#>>正文


C# StringExpressionSet.CheckList方法代码示例

本文整理汇总了C#中System.Security.Util.StringExpressionSet.CheckList方法的典型用法代码示例。如果您正苦于以下问题:C# StringExpressionSet.CheckList方法的具体用法?C# StringExpressionSet.CheckList怎么用?C# StringExpressionSet.CheckList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Security.Util.StringExpressionSet的用法示例。


在下文中一共展示了StringExpressionSet.CheckList方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Intersect

 [System.Security.SecurityCritical]  // auto-generated
 public StringExpressionSet Intersect( StringExpressionSet ses )
 {
     // If either set is empty, the intersection is empty
     
     if (this.IsEmpty() || ses == null || ses.IsEmpty())
         return CreateNewEmpty();
     
     CheckList();
     ses.CheckList();
     
     // Do the intersection for real
     
     StringExpressionSet intersectSet = CreateNewEmpty();
     
     for (int this_index = 0; this_index < this.m_list.Count; ++this_index)
     {
         for (int ses_index = 0; ses_index < ses.m_list.Count; ++ses_index)
         {
             if (StringSubsetString( (String)this.m_list[this_index], (String)ses.m_list[ses_index], m_ignoreCase ))
             {
                 if (intersectSet.m_list == null)
                 {
                     intersectSet.m_list = new ArrayList();
                 }
                 intersectSet.AddSingleExpressionNoDuplicates( (String)this.m_list[this_index] );
             }
             else if (StringSubsetString( (String)ses.m_list[ses_index], (String)this.m_list[this_index], m_ignoreCase ))
             {
                 if (intersectSet.m_list == null)
                 {
                     intersectSet.m_list = new ArrayList();
                 }
                 intersectSet.AddSingleExpressionNoDuplicates( (String)ses.m_list[ses_index] );
             }
         }
     }
     
     intersectSet.GenerateString();
     
     return intersectSet;
 }
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:42,代码来源:stringexpressionset.cs

示例2: Union

     [System.Security.SecurityCritical]  // auto-generated
     public StringExpressionSet Union( StringExpressionSet ses )
     {
         // If either set is empty, the union represents a copy of the other.
         
         if (ses == null || ses.IsEmpty())
             return this.Copy();
 
         if (this.IsEmpty())
             return ses.Copy();
         
         CheckList();
         ses.CheckList();
         
         // Perform the union
         // note: insert smaller set into bigger set to reduce needed comparisons
         
         StringExpressionSet bigger = ses.m_list.Count > this.m_list.Count ? ses : this;
         StringExpressionSet smaller = ses.m_list.Count <= this.m_list.Count ? ses : this;
 
         StringExpressionSet unionSet = bigger.Copy();
         
         unionSet.Reduce();
         
         for (int index = 0; index < smaller.m_list.Count; ++index)
         {
             unionSet.AddSingleExpressionNoDuplicates( (String)smaller.m_list[index] );
         }
         
         unionSet.GenerateString();
         
         return unionSet;
     }
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:33,代码来源:stringexpressionset.cs

示例3: IsSubsetOfPathDiscovery

 [System.Security.SecurityCritical]  // auto-generated
 public bool IsSubsetOfPathDiscovery( StringExpressionSet ses )
 {
     if (this.IsEmpty())
         return true;
     
     if (ses == null || ses.IsEmpty())
         return false;
     
     CheckList();
     ses.CheckList();
     
     for (int index = 0; index < this.m_list.Count; ++index)
     {
         if (!StringSubsetStringExpressionPathDiscovery( (String)this.m_list[index], ses, m_ignoreCase ))
         {
             return false;
         }
     }
     return true;
 }
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:21,代码来源:stringexpressionset.cs

示例4: Union

 public StringExpressionSet Union(StringExpressionSet ses)
 {
     if ((ses == null) || ses.IsEmpty())
     {
         return this.Copy();
     }
     if (this.IsEmpty())
     {
         return ses.Copy();
     }
     this.CheckList();
     ses.CheckList();
     StringExpressionSet set = (ses.m_list.Count > this.m_list.Count) ? ses : this;
     StringExpressionSet set2 = (ses.m_list.Count <= this.m_list.Count) ? ses : this;
     StringExpressionSet set3 = set.Copy();
     set3.Reduce();
     for (int i = 0; i < set2.m_list.Count; i++)
     {
         set3.AddSingleExpressionNoDuplicates((string) set2.m_list[i]);
     }
     set3.GenerateString();
     return set3;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:23,代码来源:StringExpressionSet.cs

示例5: IsSubsetOfPathDiscovery

 public bool IsSubsetOfPathDiscovery(StringExpressionSet ses)
 {
     if (!this.IsEmpty())
     {
         if ((ses == null) || ses.IsEmpty())
         {
             return false;
         }
         this.CheckList();
         ses.CheckList();
         for (int i = 0; i < this.m_list.Count; i++)
         {
             if (!StringSubsetStringExpressionPathDiscovery((string) this.m_list[i], ses, this.m_ignoreCase))
             {
                 return false;
             }
         }
     }
     return true;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:20,代码来源:StringExpressionSet.cs

示例6: Intersect

 public StringExpressionSet Intersect(StringExpressionSet ses)
 {
     if ((this.IsEmpty() || (ses == null)) || ses.IsEmpty())
     {
         return this.CreateNewEmpty();
     }
     this.CheckList();
     ses.CheckList();
     StringExpressionSet set = this.CreateNewEmpty();
     for (int i = 0; i < this.m_list.Count; i++)
     {
         for (int j = 0; j < ses.m_list.Count; j++)
         {
             if (this.StringSubsetString((string) this.m_list[i], (string) ses.m_list[j], this.m_ignoreCase))
             {
                 if (set.m_list == null)
                 {
                     set.m_list = new ArrayList();
                 }
                 set.AddSingleExpressionNoDuplicates((string) this.m_list[i]);
             }
             else if (this.StringSubsetString((string) ses.m_list[j], (string) this.m_list[i], this.m_ignoreCase))
             {
                 if (set.m_list == null)
                 {
                     set.m_list = new ArrayList();
                 }
                 set.AddSingleExpressionNoDuplicates((string) ses.m_list[j]);
             }
         }
     }
     set.GenerateString();
     return set;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:34,代码来源:StringExpressionSet.cs


注:本文中的System.Security.Util.StringExpressionSet.CheckList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。