예제 #1
0
파일: JID.cs 프로젝트: zhouDongXing/xmpp
        /// <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));
        }
예제 #2
0
 /// <summary>
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool Equals(JID other)
 {
     return(XmppId.Equals(other.XmppId));
 }