RelayEqualityComparer<T> Constructor
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Namespace: Microsoft.TeamFoundation.Controls
Assembly: Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)
Syntax
'Declaration
Public Sub New ( _
equals As Func(Of T, T, Boolean), _
getHashCode As Func(Of T, Integer) _
)
public RelayEqualityComparer(
Func<T, T, bool> equals,
Func<T, int> getHashCode
)
public:
RelayEqualityComparer(
Func<T, T, bool>^ equals,
Func<T, int>^ getHashCode
)
new :
equals:Func<'T, 'T, bool> *
getHashCode:Func<'T, int> -> RelayEqualityComparer
public function RelayEqualityComparer(
equals : Func<T, T, boolean>,
getHashCode : Func<T, int>
)
Parameters
- equals
Type: System.Func<T, T, Boolean>
- getHashCode
Type: System.Func<T, Int32>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.