private bool isSiblingRel(EventCommunicatorAddress other) { if (this.CanRemoveLast != other.CanRemoveLast) return false; var thisClone = this.Clone(); var otherClone = other.Clone(); return thisClone.RemoveLastOrNothing().AddressString.Equals(otherClone.RemoveLastOrNothing().AddressString); }
private bool isClosestChild(EventCommunicatorAddress other) { var otherClone = other.Clone(); return this.AddressString.Equals(otherClone.RemoveLastOrNothing().AddressString); }