Skip to content

M_CodeJam_Collections_ComparerBuilder_1_GetEqualityComparer_1

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

ComparerBuilder(T).GetEqualityComparer Method (Func(TypeAccessor(T), IEnumerable(MemberAccessor)))

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(
	Func<TypeAccessor<T>, IEnumerable<MemberAccessor>> membersToCompare
)

VB

Public Shared Function GetEqualityComparer ( 
	membersToCompare As Func(Of TypeAccessor(Of T), IEnumerable(Of MemberAccessor))
) As IEqualityComparer(Of T)

F#

static member GetEqualityComparer : 
        membersToCompare : Func<TypeAccessor<'T>, IEnumerable<MemberAccessor>> -> IEqualityComparer<'T> 

Parameters

 

membersToCompare
Type: System.Func(TypeAccessor(T), IEnumerable(MemberAccessor))
A function that returns 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