PropertyNodeComparer<TNode> Class
Definition
An IEqualityComparer<T> that compares PropertyNodes by their type and Properties. The nodes' children, source positions and messages are not compared.
public sealed class PropertyNodeComparer<TNode> : IEqualityComparer<TNode>
where TNode : PropertyNode<TNode>
View source
Type Parameters
| Name |
Description |
TNode |
The type of the nodes. |
Properties
Methods
| Name |
Description |
Equals(TNode, TNode) |
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. |
GetHashCode(TNode) |
Returns a hash code for the specified node consistent with Equals(TNode, TNode), based on the node's type and number of properties. |