コード例 #1
0
 public override bool Equals(object o)
 {
     if (!(o is PeerCache.Key))
     {
         return(false);
     }
     PeerCache.Key other = (PeerCache.Key)o;
     return(dnID.Equals(other.dnID) && isDomain == other.isDomain);
 }
コード例 #2
0
 public override bool Equals(object o)
 {
     if (!(o is TestPeerCache.FakePeer))
     {
         return(false);
     }
     TestPeerCache.FakePeer other = (TestPeerCache.FakePeer)o;
     return(hasDomain == other.hasDomain && dnId.Equals(other.dnId));
 }