| Parameter | Description |
|---|---|
| other | The other NodeReference to compare with this instance. |
bool true if both references share the same NodeReference.NodeID and refer to the same NodeReference.Context instance. Otherwise, false.
Indicates whether this NodeReference is equal to another NodeReference.
NodeReference a = context.GetNodeReference(nodeID); NodeReference b = context.GetNodeReference(nodeID); bool sameTarget = a.Equals(b); // true: same context, same node ID
| Parameter | Description |
|---|---|
| obj | The object to compare with this NodeReference. |
bool true if is a NodeReference equal to this instance. Otherwise, false.
Indicates whether this NodeReference is equal to another object.
NodeReference nodeRef = context.GetNodeReference(nodeID); object boxed = context.GetNodeReference(nodeID); bool sameTarget = nodeRef.Equals(boxed); // true