Skip to content

Commit

Permalink
netstandard2.0 is THE best
Browse files Browse the repository at this point in the history
  • Loading branch information
RLittlesII committed May 8, 2024
1 parent 64cb528 commit a0bff20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Prism.Core/Common/UriParsingHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ public static INavigationParameters ParseQuery(Uri uri)
/// <exception cref="ArgumentNullException">Throws an <see cref="ArgumentNullException"/> when the string is null or empty.</exception>
public static Uri Parse(string uri)
{
ArgumentNullException.ThrowIfNull(uri);
if (uri == null)
{
throw new ArgumentNullException(nameof(uri));
}

return uri.StartsWith("/", StringComparison.Ordinal)
? new Uri("http://localhost" + uri, UriKind.Absolute)
Expand Down

0 comments on commit a0bff20

Please sign in to comment.