示例#1
0
 /// <summary>
 /// Gets whether an URI is the parent of another URI.
 /// </summary>
 /// <param name="uri">The parent URI.</param>
 /// <param name="other">The child URI.</param>
 /// <returns></returns>
 public static bool IsChildOf(this EtpUri uri, EtpUri other)
 {
     return(!AreSame(uri, other) && uri.IsRelativeTo(other));
 }
示例#2
0
 /// <summary>
 /// Gets whether an URI is the parent of another URI.
 /// </summary>
 /// <param name="uri">The parent URI.</param>
 /// <param name="other">The child URI.</param>
 /// <returns></returns>
 public static bool IsParentOf(this EtpUri uri, EtpUri other)
 {
     return(!AreSame(uri, other) && other.IsRelativeTo(uri));
 }