Open sandboxFocus

Class NamespaceExtensions

Inheritance
NamespaceExtensions
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class NamespaceExtensions

Methods

Name Description
Descendants(INamespace)

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

DescendantsAndSelf(INamespace)

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

IsAncestorOf(INamespace, INamespace)

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

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.