internal static ArrayList GetServers(SsbServerLocation loc) { ArrayList retServers = new ArrayList(); ArrayList al = new ArrayList(); switch (loc) { case SsbServerLocation.Local: GetLocalServers(ref al); break; case SsbServerLocation.Network: GetNetWorkedServers(ref al); break; } IEnumerator en = al.GetEnumerator(); while (en.MoveNext()) { retServers.Add(new SSBIServer(en.Current.ToString())); } return(retServers); }
internal static ArrayList GetServers(SsbServerLocation loc) { ArrayList retServers = new ArrayList(); ArrayList al = new ArrayList(); switch (loc) { case SsbServerLocation.Local: GetLocalServers(ref al); break; case SsbServerLocation.Network: GetNetWorkedServers(ref al); break; } IEnumerator en = al.GetEnumerator(); while (en.MoveNext()) { retServers.Add(new SSBIServer(en.Current.ToString())); } return retServers; }