Ejemplo n.º 1
0
 static void PrintUrls(RootUrlsCollection col)
 {
     for (int i = 0; i < col.Count; i++)
     {
         ConfigurationElement e  = col [i];
         UrlConfigElement     ue = e as UrlConfigElement;
         if (ue != null)
         {
             Console.WriteLine("  #{0} {1}: {2}", i,
                               ue.Name,
                               ue.Url + " port " +
                               ue.Port);
         }
     }
 }
Ejemplo n.º 2
0
Archivo: t42.cs Proyecto: nlhepler/mono
		static void PrintUrls (RootUrlsCollection col) {
			for (int i = 0; i < col.Count; i++) {
				ConfigurationElement e = col [i];
				UrlConfigElement ue = e as UrlConfigElement;
				if (ue != null) {
					Console.WriteLine ("  #{0} {1}: {2}", i,
						ue.Name,
						ue.Url + " port " +
						ue.Port);
				}
			}
		}