JTokenEqualityComparer Class

Namespace: Stimulsoft.Base.Json.Linq

Compares tokens to determine whether they are equal.

Inheritance

Implements: IEqualityComparer<JToken>

Methods

Method Returns Description
Equals bool Determines whether the specified objects are equal.
GetHashCode int Returns a hash code for the specified object.

Method Details

Equals

Equals(x: JToken, y: JToken): bool

Determines whether the specified objects are equal.

Parameters

  • x (JToken) — The first object of type JToken to compare.
  • y (JToken) — The second object of type JToken to compare.

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


GetHashCode

GetHashCode(obj: JToken): int

Returns a hash code for the specified object.

Parameters

  • obj (JToken) — The Object for which a hash code is to be returned.

Returns int — A hash code for the specified object.