All pastes #747601 Raw Edit

Mine

public text v1 · immutable
·published 2007-10-24 05:18 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.Net;

namespace Server
{
    public sealed class ClientDetailsCollection : KeyedCollection<IPEndPoint, ClientDetails>
    {
        public ClientDetailsCollection()
        {
        }

        protected override IPEndPoint GetKeyForItem(ClientDetails item)
        {
            foreach (KeyValuePair<IPEndPoint, ClientDetails> kv in this.Dictionary)
            {
                if (kv.Value == item)
                {
                    return kv.Key;
                }
            }
        }
    }
}