Class AuthorizationRuleAssignmentEqualityComparer
Defines methods to support comparison of AuthorizationRuleAssignment objects.
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class AuthorizationRuleAssignmentEqualityComparer : IEqualityComparer<AuthorizationRuleAssignment>
Constructors
AuthorizationRuleAssignmentEqualityComparer(Boolean)
Initializes a new instance.
Declaration
public AuthorizationRuleAssignmentEqualityComparer(bool compareEquivalency)
Parameters
Type | Name | Description |
---|---|---|
Boolean | compareEquivalency | Flag indicating that comparison must be done without checking Id, Key, and Priority property values. |
Methods
Equals(AuthorizationRuleAssignment, AuthorizationRuleAssignment)
Determines whether the specified objects are equal.
Declaration
public bool Equals(AuthorizationRuleAssignment x, AuthorizationRuleAssignment y)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationRuleAssignment | x | The first object to compare. |
AuthorizationRuleAssignment | y | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if the specified objects are equal; otherwise, false. |
GetHashCode(AuthorizationRuleAssignment)
Returns a hash code for the specified object.
Declaration
public int GetHashCode(AuthorizationRuleAssignment obj)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationRuleAssignment | obj | The object for which a hash code is to be returned. |
Returns
Type | Description |
---|---|
Int32 | A hash code for the specified object. |