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
JTokenThe first object of type JToken to compare.
y
JTokenThe 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
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.