Skip to content

M_CodeJam_Collections_ComparerBuilder_1_GetEqualityComparer_2

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

ComparerBuilder(T).GetEqualityComparer Method (Expression(Func(T, Object))[])

Returns implementations of the IEqualityComparer(T) generic interface based on provided object public members equality.

Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static IEqualityComparer<T> GetEqualityComparer(
	params Expression<Func<T, Object>>[] membersToCompare
)

VB

Public Shared Function GetEqualityComparer ( 
	ParamArray membersToCompare As Expression(Of Func(Of T, Object))()
) As IEqualityComparer(Of T)

F#

static member GetEqualityComparer : 
        membersToCompare : Expression<Func<'T, Object>>[] -> IEqualityComparer<'T> 

Parameters

 

membersToCompare
Type: System.Linq.Expressions.Expression(Func(T, Object))[]
Members to compare.

Return Value

Type: IEqualityComparer(T)
Instance of IEqualityComparer(T).

See Also

Reference

ComparerBuilder(T) Class
GetEqualityComparer Overload
CodeJam.Collections Namespace

Clone this wiki locally