ComparisonAdapter.For Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
For(IComparer) |
Returns a ComparisonAdapter that wraps an IComparer |
For<T>(IComparer<T>) |
Returns a ComparisonAdapter that wraps an IComparer<T> |
For<T>(Comparison<T>) |
Returns a ComparisonAdapter that wraps a Comparison<T> |
For(IComparer)
Returns a ComparisonAdapter that wraps an IComparer
public static NUnit.Framework.Constraints.ComparisonAdapter For (System.Collections.IComparer comparer);
static member For : System.Collections.IComparer -> NUnit.Framework.Constraints.ComparisonAdapter
Parameters
- comparer
- IComparer
Returns
Applies to
For<T>(IComparer<T>)
Returns a ComparisonAdapter that wraps an IComparer<T>
public static NUnit.Framework.Constraints.ComparisonAdapter For<T> (System.Collections.Generic.IComparer<T> comparer);
static member For : System.Collections.Generic.IComparer<'T> -> NUnit.Framework.Constraints.ComparisonAdapter
Type Parameters
- T
Parameters
- comparer
- IComparer<T>
Returns
Applies to
For<T>(Comparison<T>)
Returns a ComparisonAdapter that wraps a Comparison<T>
public static NUnit.Framework.Constraints.ComparisonAdapter For<T> (Comparison<T> comparer);
static member For : Comparison<'T> -> NUnit.Framework.Constraints.ComparisonAdapter
Type Parameters
- T
Parameters
- comparer
- Comparison<T>