Skip to content

Instantly share code, notes, and snippets.

Avatar
⌨️
Computeren

Stefan Kip stefankip

⌨️
Computeren
View GitHub Profile
View StringExtensions.cs
public static class StringExtensions
{
/// <summary>
/// Converts the provided app-relative path into an absolute Url containing the
/// full host name
/// </summary>
/// <param name="relativeUrl">App-Relative path</param>
/// <returns>Provided relativeUrl parameter as fully qualified Url</returns>
/// <example>~/path/to/foo to http://www.web.com/path/to/foo</example>
public static string ToAbsoluteUrl(this string relativeUrl)