Summary
Provides equality and hash-code implementation for T based on a set of key-selector functions.
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Helpers - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["LambdaEqualityHelper<T>"]
class Type type-node
Syntax
public class LambdaEqualityHelper<T>
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| NullableAttribute |
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
| Name | Summary |
|---|---|
| LambdaEqualityHelper | Provides equality and hash-code implementation for T based on a set of key-selector functions. |
Methods
| Name | Value | Summary |
|---|---|---|
| Equals |
bool |
Returns
true when instance and other are equal according to all registered key selectors. |
| GetHashCode |
int |
Computes a hash code for instance by combining the hash codes of all registered keys.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| NotNull |
T |
Throws
System.ArgumentNullException when value is null; otherwise returns the value.From CommonExtensions
|