fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. Uri uriAddress = new Uri("http://localhost:5100/api/authorization");
  8. Console.WriteLine("The path of this Uri is {0}", uriAddress.GetLeftPart(UriPartial.Authority));
  9. }
  10. }
Success #stdin #stdout 0.04s 28928KB
stdin
Standard input is empty
stdout
The path of this Uri is http://localhost:5100