/// <summary> /// Determines whether the <paramref name="current"/> Uri instance is a /// base of the specified Uri instance. /// </summary> /// <param name="current">Candidate base URI.</param> /// <param name="uri">The specified Uri instance to test.</param> /// <returns>true if the current Uri instance is a base of uri; otherwise, false.</returns> internal static bool UriInvariantInsensitiveIsBaseOf(Uri current, Uri uri) { Debug.Assert(current != null, "current != null"); Debug.Assert(uri != null, "uri != null"); Uri upperCurrent = CreateBaseComparableUri(current); Uri upperUri = CreateBaseComparableUri(uri); return(UriUtil.IsBaseOf(upperCurrent, upperUri)); }