Example #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);
         }
     }
 }
Example #2
0
File: t42.cs Project: 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);
				}
			}
		}