ValueEqualityComparer Constructor (Boolean, IEqualityComparer.String., IEqualityComparer.Event., IEqualityComparer.Message., IEqualityComparer.Alarm.)

Initializes a new instance of the ValueEqualityComparer class with a value that indicates whether relaxed ValueType comparision should be used and IEqualityComparer.T.s that are used to compare instances of type String, Event, Message and Alarm.

Namespace:  TcHmiSrv.Core.Tools.Queries
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public ValueEqualityComparer(
    bool relaxedTypeComparison,
    IEqualityComparer<string> stringComparer,
    IEqualityComparer<Event> eventComparer,
    IEqualityComparer<Message> messageComparer,
    IEqualityComparer<Alarm> alarmComparer
)

Parameters

relaxedTypeComparison

Type: System.Boolean
true to consider Map and Struct equal; otherwise, false.

stringComparer

Type: System.Collections.Generic.IEqualityComparer.String.
An IEqualityComparer.T. that is used to compare instances of type String.

eventComparer

Type: System.Collections.Generic.IEqualityComparer.Event.
An IEqualityComparer.T. that is used to compare instances of type Event.

messageComparer

Type: System.Collections.Generic.IEqualityComparer.Message.
An IEqualityComparer.T. that is used to compare instances of type Message.

alarmComparer

Type: System.Collections.Generic.IEqualityComparer.Alarm.
An IEqualityComparer.T. that is used to compare instances of type Alarm.

Reference

ValueEqualityComparer Class

ValueEqualityComparer Overload

TcHmiSrv.Core.Tools.Queries Namespace