public void globalStatus() { for (int i = 0; i < clientsUrl.Count; i++) { ClientInterface c = (ClientInterface)Activator.GetObject( typeof(ClientInterface), clientsUrl[i]); c.globalStatus(); } for (int i = 0; i < serversUrl.Count; i++) { ServerInterface s = (ServerInterface)Activator.GetObject( typeof(ServerInterface), serversUrl[i]); s.globalStatus(); } }