Show / Hide Table of Contents

    Class JTokenEqualityComparer

    Compares tokens to determine whether they are equal.

    Inheritance
    System.Object
    JTokenEqualityComparer
    Implements
    System.Collections.Generic.IEqualityComparer<JToken>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Bayat.Json.Linq
    Assembly: Bayat.Json.Runtime.dll
    Syntax
    public class JTokenEqualityComparer : IEqualityComparer<JToken>

    Methods

    | Improve this Doc View Source

    Equals(JToken, JToken)

    Determines whether the specified objects are equal.

    Declaration
    public bool Equals(JToken x, JToken y)
    Parameters
    Type Name Description
    JToken x

    The first object of type JToken to compare.

    JToken y

    The second object of type JToken to compare.

    Returns
    Type Description
    System.Boolean

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

    | Improve this Doc View Source

    GetHashCode(JToken)

    Returns a hash code for the specified object.

    Declaration
    public int GetHashCode(JToken obj)
    Parameters
    Type Name Description
    JToken obj

    The System.Object for which a hash code is to be returned.

    Returns
    Type Description
    System.Int32

    A hash code for the specified object.

    Exceptions
    Type Condition
    System.ArgumentNullException

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

    Implements

    System.Collections.Generic.IEqualityComparer<T>
    • Improve this Doc
    • View Source
    • 0 Comments