public static PackUri ( |
||
packUri | ||
return | void |
public static Uri GetPackageUri(Uri packUri) { Check.PackUri(packUri); Check.PackUriIsValid(packUri); string s = packUri.Host.Replace(',', '/'); return(new Uri(Uri.UnescapeDataString(s), UriKind.RelativeOrAbsolute)); }
public static Uri GetPartUri(Uri packUri) { Check.PackUri(packUri); Check.PackUriIsValid(packUri); if (string.IsNullOrEmpty(packUri.AbsolutePath) || packUri.AbsolutePath == "/") { return(null); } return(new Uri(packUri.AbsolutePath, UriKind.Relative)); }