Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Comparer<T>.Create Method

.NET Framework 4.6 and 4.5

Creates a comparer by using the specified comparison.

Namespace:  System.Collections.Generic
Assemblies:   mscorlib (in mscorlib.dll)
  System.Collections (in System.Collections.dll)

public static Comparer<T> Create(
	Comparison<T> comparison
)

Parameters

comparison
Type: System.Comparison<T>

The comparison to use.

Return Value

Type: System.Collections.Generic.Comparer<T>
The new comparer.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft