public bool ContainsKey(IntPtr peerPtr) { if (this.sockets.ContainsKey(peerPtr)) { return true; } return false; }