Table of Contents

Class ClaimComparer

Namespace
Fdyay.IdentityServer.Models
Assembly
Fdyay.IdentityServer.Core.dll

Compares claims by type, value, and value type (ordinal).

public sealed class ClaimComparer : IEqualityComparer<Claim>
Inheritance
ClaimComparer
Implements
Inherited Members

Methods

Equals(Claim?, Claim?)

Determines whether the specified objects are equal.

public bool Equals(Claim? x, Claim? y)

Parameters

x Claim

The first object of type T to compare.

y Claim

The second object of type T to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

GetHashCode(Claim)

Returns a hash code for the specified object.

public int GetHashCode(Claim obj)

Parameters

obj Claim

The object for which a hash code is to be returned.

Returns

int

A hash code for the specified object.

Exceptions

ArgumentNullException

The type of obj is a reference type and obj is null.