Skip to content

Instantly share code, notes, and snippets.

@jupy
Created June 6, 2013 08:38
Show Gist options
  • Save jupy/5720156 to your computer and use it in GitHub Desktop.
Save jupy/5720156 to your computer and use it in GitHub Desktop.
Как правильно объединить базовый (абсолютный) и относительный URL

Как объединить базовый и относительный URLs

Некоторое описание code snippet-а.

  • Базовый
  • Относительный
Uri baseUrl = new Uri("http://www.csharpdeveloping.net");
string relativeUrl = "Images/test.jpg";
Uri combined = new Uri(baseUrl, relativeUrl);
Console.WriteLine(combined);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment