public IEnumerable<PlayerInfo> FindByIP( IPAddress address, int limit ) {
if( address == null ) throw new ArgumentNullException( "address" );
List<PlayerInfo> result = new List<PlayerInfo>();
using( PlayerDB.GetReadLock() ) {
int total = PlayerDB.List.Count;
for( int i = 0; i < total; i++ ) {
if( PlayerDB.List[i].LastIP.Equals( address ) ) {
result.Add( PlayerDB.List[i] );
if( result.Count >= limit ) break;
}
}
return result.ToArray();
}
}