Esempio n. 1
0
 /// <summary>
 /// 判断一个 ConnectionListItem 是否等价于另一个 ConnectionListItem。
 /// </summary>
 /// <param name="other">要与之比较的 ConnectionListItem。</param>
 /// <returns>一个 <see cref="System.Boolean"/>,指示二者是否等价。</returns>
 public bool Equals(ConnectionListItem other)
 {
     if (other == null)
     {
         return(this == null);
     }
     else
     {
         return(ClientLocation.Equals(other.ClientLocation));
     }
 }
Esempio n. 2
0
 protected bool Equals(Client other)
 {
     return(_telephones.SequenceEqual(other._telephones) && _comments.SequenceEqual(other._comments) && ClientLocation.Equals(other.ClientLocation) && Person.Equals(other.Person));
 }