public bool Equals(RelationshipEntry other) { object?owner1 = (_owner.IsAlive ? _owner.Target : null); object?owner2 = (other._owner.IsAlive ? other._owner.Target : null); return(owner1 == owner2 && _member.Equals(other._member)); }
public bool ContainsChange(MemberDescriptor desc) { if (this._member == null) { return(true); } if (desc == null) { return(false); } return(desc.Equals(this._member)); }