Click or drag to resize

ProjectionComparerTSource, TKey Class

Comparer which projects each element of the comparison to a key, and then compares those keys using the specified (or default) comparer for the key type.
Inheritance Hierarchy
SystemObject
  Koden.UtilsProjectionComparerTSource, TKey

Namespace:  Koden.Utils
Assembly:  Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntax
public class ProjectionComparer<TSource, TKey> : IComparer<TSource>

Type Parameters

TSource
Type of elements which this comparer will be asked to compare
TKey
Type of the key projected from the element

The ProjectionComparerTSource, TKey type exposes the following members.

Constructors
Methods
  NameDescription
Public methodCompare
Compares x and y by projecting them to keys and then comparing the keys. Null values are not projected; they obey the standard comparer contract such that two null values are equal; any null value is less than any non-null value.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also