Example #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);
 }
Example #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));
 }