Open sandboxFocus

Method DescendantsAndSelf

DescendantsAndSelf(INamespace)

Gets all child and descendant namespaces of the current namespace, plus the current namespace.

Declaration
public static IReadOnlyList<INamespace> DescendantsAndSelf(this INamespace ns)
Parameters
Type Name Description
INamespace ns

The namespace whose descendants to retrieve, along with the namespace itself.

Returns
Type Description
IReadOnlyList<INamespace>

A list of all descendant namespaces, including the current namespace.