Open sandboxFocus

Method IsDescendantOf

IsDescendantOf(INamespace, INamespace)

Gets a value indicating whether the current namespace is the descendant of another given namespace. This method returns false when both namespaces are equal.

Declaration
public static bool IsDescendantOf(this INamespace a, INamespace b)
Parameters
Type Name Description
INamespace a

The potential descendant namespace.

INamespace b

The namespace to check.

Returns
Type Description
bool

true if a is a descendant of b; otherwise, false.