Example #1
0
        /// <summary>
        /// Determines whether the <see cref="ResolvedUri"/> is a base of the specified <see cref="TargetUri.ResolvedUri"/>.
        /// </summary>
        /// <param name="targetUri">The <see cref="TargetUri"/> to test.</param>
        /// <returns><see langword="True"/> if is a base of <param name="targetUri"/>; otherwise, <see langword="false"/>.</returns>
        public bool IsBaseOf(TargetUri targetUri)
        {
            if (targetUri == null)
            {
                return(false);
            }

            return(ResolvedUri.IsBaseOf(targetUri.ResolvedUri));
        }
Example #2
0
 /// <summary>
 /// Gets a canonical string representation for the <see cref="ResolvedUri"/>.
 /// </summary>
 /// <returns></returns>
 public override String ToString()
 {
     return(ResolvedUri.ToString());
 }
Example #3
0
 /// <summary>
 /// Determines whether the <see cref="ResolvedUri"/> is a base of the specified <see cref="Uri"/>.
 /// </summary>
 /// <param name="uri">The <see cref="Uri"/> to test.</param>
 /// <returns><see langword="True"/> if is a base of <param name="uri"/>; otherwise, <see langword="false"/>.</returns>
 public bool IsBaseOf(Uri uri)
 {
     return(ResolvedUri.IsBaseOf(uri));
 }