Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

JsonNode.DeepEquals(JsonNode, JsonNode) Method

Definition

Namespace:
System.Text.Json.Nodes
Assembly:
System.Text.Json.dll
Package:
System.Text.Json v11.0.0-preview.5.26302.115
Source:
JsonNode.cs
Source:
JsonNode.cs
Source:
JsonNode.cs
Source:
JsonNode.cs
Source:
JsonNode.cs
Source:
JsonNode.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?