Пример #1
0
 public int CompareTo(object obj)
 {
     if (obj is QueueUser)
     {
         return(JidUser.CompareTo((obj as QueueUser).JidUser));
     }
     if (obj is Jid)
     {
         var jid = new Jid((obj as Jid).User, (obj as Jid).Server, null);
         return(JidUser.CompareTo(jid));
     }
     return(JidUser.CompareTo(obj));
 }
Пример #2
0
 public bool Equals(QueueUser other)
 {
     return(JidUser.Equals(other.JidUser));
 }
Пример #3
0
 public override int GetHashCode()
 {
     return(JidUser != null ? JidUser.GetHashCode() : 0);
 }