Table of Contents

Class JTokenEqualityComparer

Namespace
Newtonsoft.Json.Linq
Assembly
Newtonsoft.Json.dll

Compares tokens to determine whether they are equal.

public class JTokenEqualityComparer : IEqualityComparer<JToken>
Inheritance
JTokenEqualityComparer
Implements
Inherited Members

Constructors

JTokenEqualityComparer()

public JTokenEqualityComparer()

Methods

Equals(JToken, JToken)

Determines whether the specified objects are equal.

public bool Equals(JToken x, JToken y)

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(JToken)

Returns a hash code for the specified object.

public int GetHashCode(JToken obj)

Parameters

obj JToken

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.