EqualityAdapter.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 an EqualityAdapter that wraps an IComparer. |
For(IEqualityComparer) |
Returns an EqualityAdapter that wraps an IEqualityComparer. |
For<T>(IComparer<T>) |
Returns an EqualityAdapter that wraps an IComparer<T>. |
For<T>(IEqualityComparer<T>) |
Returns an EqualityAdapter that wraps an IEqualityComparer<T>. |
For<T>(Comparison<T>) |
Returns an EqualityAdapter that wraps a Comparison<T>. |
For(IComparer)
Returns an EqualityAdapter that wraps an IComparer.
public static NUnit.Framework.Constraints.EqualityAdapter For (System.Collections.IComparer comparer);
static member For : System.Collections.IComparer -> NUnit.Framework.Constraints.EqualityAdapter
Parameters
- comparer
- IComparer
Returns
Applies to
For(IEqualityComparer)
Returns an EqualityAdapter that wraps an IEqualityComparer.
public static NUnit.Framework.Constraints.EqualityAdapter For (System.Collections.IEqualityComparer comparer);
static member For : System.Collections.IEqualityComparer -> NUnit.Framework.Constraints.EqualityAdapter
Parameters
- comparer
- IEqualityComparer
Returns
Applies to
For<T>(IComparer<T>)
Returns an EqualityAdapter that wraps an IComparer<T>.
public static NUnit.Framework.Constraints.EqualityAdapter For<T> (System.Collections.Generic.IComparer<T> comparer);
static member For : System.Collections.Generic.IComparer<'T> -> NUnit.Framework.Constraints.EqualityAdapter
Type Parameters
- T
Parameters
- comparer
- IComparer<T>
Returns
Applies to
For<T>(IEqualityComparer<T>)
Returns an EqualityAdapter that wraps an IEqualityComparer<T>.
public static NUnit.Framework.Constraints.EqualityAdapter For<T> (System.Collections.Generic.IEqualityComparer<T> comparer);
static member For : System.Collections.Generic.IEqualityComparer<'T> -> NUnit.Framework.Constraints.EqualityAdapter
Type Parameters
- T
Parameters
- comparer
- IEqualityComparer<T>
Returns
Applies to
For<T>(Comparison<T>)
Returns an EqualityAdapter that wraps a Comparison<T>.
public static NUnit.Framework.Constraints.EqualityAdapter For<T> (Comparison<T> comparer);
static member For : Comparison<'T> -> NUnit.Framework.Constraints.EqualityAdapter
Type Parameters
- T
Parameters
- comparer
- Comparison<T>