public void Add(NetEndPoint endPoint, NetPeer peer) { _peersArray[_count] = peer; _peersDict.Add(endPoint, peer); _count++; }
public bool ContainsAddress(NetEndPoint endPoint) { return(_peersDict.ContainsKey(endPoint)); }
public bool TryGetValue(NetEndPoint endPoint, out NetPeer peer) { return(_peersDict.TryGetValue(endPoint, out peer)); }