internal bool Contains(Peer peer) { foreach (Peer other in AllPeers()) { if (peer.Equals(other)) { return(true); } } return(false); }
internal bool Contains(Peer peer) { foreach (Peer other in AllPeers()) if (peer.Equals(other)) return true; return false; }
public override bool Equals(object obj) { PeerId id = obj as PeerId; return(id == null ? false : Peer.Equals(id.Peer)); }