Create Method
Collapse the table of content
Expand the table of content

Comparer<T>.Create Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a comparer by using the specified comparison.

Namespace:  System.Collections.Generic
Assembly:  mscorlib (in mscorlib.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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft