using System.Collections.Generic; namespace ET.Client { public class ServerInfo { public string ShowName; public string Ip; public int Port; public string HostStr { get { return Ip + ":" + Port; } } public static List ServerList; static ServerInfo() { ServerList = new(){ new ServerInfo{ ShowName = "本地[localhost:30300]", Ip = "127.0.0.1", Port = 30300 }, new ServerInfo{ ShowName = "外网[47.122.5.112:30300]", Ip = "47.122.5.112", Port = 30300 }, }; } } }