JsonNode.DeepEquals(JsonNode, JsonNode) Method

Definition

Compares the values of two nodes, including the values of all descendant nodes.

public:
 static bool DeepEquals(System::Text::Json::Nodes::JsonNode ^ node1, System::Text::Json::Nodes::JsonNode ^ node2);
public static bool DeepEquals (System.Text.Json.Nodes.JsonNode? node1, System.Text.Json.Nodes.JsonNode? node2);
static member DeepEquals : System.Text.Json.Nodes.JsonNode * System.Text.Json.Nodes.JsonNode -> bool
Public Shared Function DeepEquals (node1 As JsonNode, node2 As JsonNode) As Boolean

Parameters

node1
JsonNode

The JsonNode to compare.

node2
JsonNode

The JsonNode to compare.

Returns

true if the tokens are equal; otherwise false.

Applies to