public override bool Equals(object obj) { if (obj == null || (object)NodeLocation == null) { return(false); } return(NodeLocation.Equals(((Node)obj).NodeLocation)); }
public bool Equals(Node value) { if ((object)value == null || NodeLocation == null) { return(false); } return(NodeLocation.Equals(value.NodeLocation)); }