Summary
A
System.Collections.Generic.Comparer`1 that delegates comparison to a key-selector function, with an optional inner comparer for the key type.- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Helpers - Base Types
-
- Comparer
<TSource>
- Comparer
graph BT
Type-->Base0["Comparer<TSource>"]
Type["LambdaKeyComparer<TSource, TKey>"]
class Type type-node
Syntax
public class LambdaKeyComparer<TSource, TKey> : Comparer<TSource> where TSource : class
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| NullableAttribute |
Type Parameters
| Name | Description |
|---|---|
| TSource | |
| TKey |
Constructors
| Name | Summary |
|---|---|
| LambdaKeyComparer | A System.Collections.Generic.Comparer`1 that delegates comparison to a key-selector function, with an optional inner comparer for the key type. |
Methods
| Name | Value | Summary |
|---|---|---|
| Compare |
int |
Compares x and y by applying the key selector and delegating to the inner comparer.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| NotNull |
T |
Throws
System.ArgumentNullException when value is null; otherwise returns the value.From CommonExtensions
|