DarkEmu_GameServer.Systems.GetServerByEndPoint C# (CSharp) Метод

GetServerByEndPoint() публичный статический Метод

public static GetServerByEndPoint ( string ip, int port ) : SRX_Serverinfo
ip string
port int
Результат SRX_Serverinfo
        public static SRX_Serverinfo GetServerByEndPoint(string ip, int port)
        {
            SRX_Serverinfo LS = null;

            foreach (KeyValuePair<int, Systems.SRX_Serverinfo> LSI in LSList)
            {
                if (LSI.Value.ip == ip && LSI.Value.ipcport == port)
                {
                    LS = LSI.Value;
                }
            }
            return LS;
        }
Systems