using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Net; namespace Server { public sealed class ClientDetailsCollection : KeyedCollection { public ClientDetailsCollection() { } protected override IPEndPoint GetKeyForItem(ClientDetails item) { foreach (KeyValuePair kv in this.Dictionary) { if (kv.Value == item) { return kv.Key; } } } } }