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
xJTokenThe first object of type JToken to compare.
yJTokenThe 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
objis a reference type andobjis null.