Skip to content

PropertyNodeComparer<TNode>.Equals Method

Definition

Returns true if two nodes have the same type and equal Properties, false otherwise. Properties are equal if the nodes have the same property keys, and the values for each key are single or multiple valued to match, have the same type and are equal, using Equals(Object) for single values and element-wise for multiple values.

public new bool Equals(TNode? x, TNode? y);

View source

Parameters

Name Type Description
x TNode The first node.
y TNode The second node.

Returns

Boolean

true if the nodes have the same type and equal properties, false otherwise.