fork(1) download
  1. using System;
  2. using System.Net;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var uri = new Uri("http://ru.stackoverflow.com/questions/623043/%d0%94%d0%be%d0%bc%d0%b5%d0%bd%d0%bd%d0%be%d0%b5-%d0%b8%d0%bc%d1%8f-%d0%b8%d0%bb%d0%b8-ip-%d0%b0%d0%b4%d1%80%d0%b5%d1%81");
  9. Console.WriteLine(uri.Host);
  10. }
  11. }
Success #stdin #stdout 0.01s 29800KB
stdin
Standard input is empty
stdout
ru.stackoverflow.com