Bauglir.Ex.WebSocketServer.GetConnectionByIndex C# (CSharp) Метод

GetConnectionByIndex() публичный Метод

return connection by its position Index property
public GetConnectionByIndex ( int index ) : WebSocketServerConnection
index int connection's Index ptoperty
Результат WebSocketServerConnection
        public WebSocketServerConnection GetConnectionByIndex(int index)
        {
            LockConnections();
            WebSocketServerConnection result = null;
            int i;
            int j = fConnections.Count;
            for (i = 0; i < j; i++)
            {
                if (fConnections[i].Index == index)
                {
                    result = fConnections[i];
                    break;
                }
            }
            UnlockConnections();
            return result;
        }