Class AuthorizationRuleAssignmentEqualityComparer
Defines methods to support comparison of AuthorizationRuleAssignment objects.
Inheritance
System.Object
AuthorizationRuleAssignmentEqualityComparer
Implements
System.Collections.Generic.IEqualityComparer<AuthorizationRuleAssignment>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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 |
---|---|---|
System.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 |
---|---|
System.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 |
---|---|
System.Int32 | A hash code for the specified object. |
Implements
System.Collections.Generic.IEqualityComparer<T>