C# Uri

Uri class is used to generate a standard URL address.

using System;
Uri u = new Uri("C:\\Users");
var c = u.AbsoluteUri; //file:///C:/Users

Uri class can be used to change a relative address to an absolute address.
Uri u = new Uri("https://idontcarewhatyouthink.net");
Uri u2 = new Uri(u,"csharp/uri.php"); //u2.ToString() = https://idontcarewhatyouthink.net/csharp/uri.php