LambdaEqualityHelper<T> Class

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
NullableContextAttribute
NullableAttribute

Type Parameters

Name Description
T

Constructors

Name Summary
LambdaEqualityHelper(Func<T, object>[]) Provides equality and hash-code implementation for T based on a set of key-selector functions.

Methods

Name Value Summary
Equals(T, T) bool
Returns true when instance and other are equal according to all registered key selectors.
GetHashCode(T) int
Computes a hash code for instance by combining the hash codes of all registered keys.

Extension Methods

Name Value Summary
NotNull<LambdaEqualityHelper<T>>(string) T
Throws System.ArgumentNullException when value is null; otherwise returns the value.