combine absolute and relative path/url
Published: 30. January 2012 | Updated: 30. January 2012License: Microsoft Public License (MS-PL)
Categories: File system, Network
Tags: C# File System Network
Uri baseUrl = new Uri("http://www.csharpdeveloping.net"); string relativeUrl = "Images/test.jpg"; Uri combined = new Uri(baseUrl, relativeUrl); Console.WriteLine(combined);Console Output:
http://www.csharpdeveloping.net/Images/test.jpg
| Send us feedback about this snippet » |





