Assembly: OptimaJet.Workflow.Core

Class ActorDefinitionCompare

OptimaJet.Workflow.Core.Model.ActorDefinitionCompare

Compares ActorDefinition instances for equality based on their actor names.

public class ActorDefinitionCompare : IEqualityComparer<ActorDefinition>

Type Hierarchy

Methods

public bool Equals(ActorDefinition x, ActorDefinition y) #
Determines whether two ActorDefinition instances have equal actor names.

Parameters

Name
Type
Description
x
ActorDefinition
The first ActorDefinition to compare.
y
ActorDefinition
The second ActorDefinition to compare.

Returns

Type
Description
Boolean
true if x and y have equal actor names; otherwise, false.

Exceptions

Type
Description
NullReferenceException
x or y is null.

Remarks

Actor names are compared case-sensitively.
public int GetHashCode(ActorDefinition codeh) #
Returns a hash code for an ActorDefinition based on its actor name.

Parameters

Name
Type
Description
codeh
ActorDefinition
The ActorDefinition for which to calculate a hash code.

Returns

Type
Description
Int32
A hash code derived from the actor name of codeh.

Exceptions

Type
Description
NullReferenceException
codeh or its actor name is null.