Created
December 16, 2018 12:21
-
-
Save MarcBruins/cd7643d13f8a0c1bdb7f3587673938cd to your computer and use it in GitHub Desktop.
Returning null for null Uri
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Uri EnsureTrailingSlash(Uri uri) | |
{ | |
if (uri == null) | |
return null; | |
return new Uri(uri.ToString() + "/"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment