/// <summary> /// Compares the values of two tokens, including the values of all descendant tokens. /// </summary> /// <param name="t1">The first <see cref="RavenJToken"/> to compare.</param> /// <param name="t2">The second <see cref="RavenJToken"/> to compare.</param> /// <returns>true if the tokens are equal; otherwise false.</returns> public static bool DeepEquals(RavenJToken t1, RavenJToken t2) { return(t1 == t2 || (t1 != null && t2 != null && t1.DeepEquals(t2))); }
/// <summary> /// Compares the values of two tokens, including the values of all descendant tokens. /// </summary> /// <param name="t1">The first <see cref="RavenJToken" /> to compare.</param> /// <param name="t2">The second <see cref="RavenJToken" /> to compare.</param> /// <param name="difference"> changes description</param> /// <returns>true if the tokens are equal; otherwise false.</returns> public static bool DeepEquals(RavenJToken t1, RavenJToken t2, List <DocumentsChanges> difference) { return(t1 == t2 || (t1 != null && t2 != null && t1.DeepEquals(t2, difference))); }