예제 #1
0
 /// <summary>
 /// Set all modifiers applied to the prefix into
 /// the base constraint before matching
 /// </summary>
 protected void PassModifiersToBase()
 {
     if (this.caseInsensitive)
     {
         baseConstraint = baseConstraint.IgnoreCase;
     }
     if (this.tolerance != null)
     {
         baseConstraint = baseConstraint.Within(tolerance);
     }
     if (this.compareAsCollection)
     {
         baseConstraint = baseConstraint.AsCollection;
     }
     if (this.compareWith != null)
     {
         baseConstraint = baseConstraint.Comparer(compareWith);
     }
 }