Beispiel #1
0
 /// <summary>
 /// Modifies the constraint to use an IComparer and returns self.
 /// </summary>
 public CollectionOrderedConstraint Using(IComparer comparer)
 {
     this.comparer     = ComparisonAdapter.For(comparer);
     this.comparerName = comparer.GetType().FullName;
     return(this);
 }
Beispiel #2
0
 /// <summary>
 /// Modifies the constraint to use a Comparison&lt;T&gt; and returns self.
 /// </summary>
 public CollectionOrderedConstraint Using <T>(Comparison <T> comparer)
 {
     this.comparer     = ComparisonAdapter.For(new CompPclFix <T>(comparer));
     this.comparerName = comparer.GetType().FullName;
     return(this);
 }
 /// <summary>
 /// Modifies the constraint to use a Comparison&lt;T&gt; and returns self
 /// </summary>
 public ComparisonConstraint Using<T>(Comparison<T> comparer)
 {
     this.comparer = ComparisonAdapter.For(comparer);
     return this;
 }