Esempio n. 1
0
 private void FilterByVersion(ref CollationCollection cols)
 {
     if (this.MyInvocation.BoundParameters.ContainsKey("Version"))
     {
         for (int i = cols.Count - 1; i >= 0; i--)
         {
             Collation c = cols[i];
             if (!this.Version.Contains(c.CollationVersion))
             {
                 cols.Remove(c);
             }
         }
     }
 }
Esempio n. 2
0
 private void FilterByLocaleId(ref CollationCollection cols)
 {
     if (this.MyInvocation.BoundParameters.ContainsKey("LocaleID"))
     {
         for (int i = cols.Count - 1; i >= 0; i--)
         {
             Collation c = cols[i];
             if (!this.LocaleID.Contains(c.LocaleID))
             {
                 cols.Remove(c);
             }
         }
     }
 }
Esempio n. 3
0
 private void FilterByName(ref CollationCollection cols)
 {
     if (this.MyInvocation.BoundParameters.ContainsKey("Name"))
     {
         var wcp = new WildcardPattern(this.Name, WildcardOptions.IgnoreCase);
         for (int i = cols.Count - 1; i >= 0; i--)
         {
             Collation c = cols[i];
             if (!wcp.IsMatch(c.Name))
             {
                 cols.Remove(c);
             }
         }
     }
 }