protected void OnUnknownEvent(PeerSocket peer, XmlRequest xml) { if (xml.FirstTag != "peerlist") return; ResponseReader reader = new ResponseReader(xml.BodyText); ArrayList peerList = reader.Elements; foreach (Hashtable elem in peerList) { if (IsInMyList(elem) == true) continue; Console.WriteLine(" - {0} {1}", elem["name"], elem["secure"]); } }