/// <summary> /// /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj is string) { return(XmppId.Equals(obj)); } if (!(obj is JID)) { return(false); } return(XmppId.Equals(((JID)obj).XmppId)); }
/// <summary> /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(JID other) { return(XmppId.Equals(other.XmppId)); }