Skip to content

Comparers

Tomáš Bouda edited this page Nov 21, 2017 · 1 revision

🔴 Type Comparers.InlineComparer`1

Allows you to compare inline with linq query

Type Param Description
T

🔹 Method Comparers.InlineComparer1.#ctor(System.Func{0,0,System.Boolean},System.Func{0,System.Int32})

Creates instance of `1

Param Description
equals Pass lambda expression for comparison (t1, t2) => t1.Id == t2.Id
Param Description
hashCode Pass lambda expression for GetHashCode function. i => i.Id.GetHashCode()

🔹 Method Comparers.InlineComparer1.Equals(0,`0)

Param Description
x
y

Returns:


🔹 Method Comparers.InlineComparer1.GetHashCode(0)

Param Description
obj

Returns: