Open sandboxFocus

Interface INamespace

Represents a namespace inside the current compilation or an external assembly, according to the DeclaringAssembly property.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
public interface INamespace : INamespaceOrNamedType, INamedDeclaration, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable, IEquatable<IDeclaration>
Remarks

At design time, namespaces of the current compilation can be partial, or incomplete. See IsPartial for details.

Properties

Name Description
IsGlobalNamespace

Gets a value indicating whether the current namespace represents the global (or root) namespace.

IsPartial

Gets a value indicating whether the current namespace is partial, i.e. incomplete. Metalama uses partial compilations at design time, when only the closure of modified types are being incrementally recompiled. In this scenario, namespaces of the current compilation are partial. Namespaces of external assemblies are never partial.

Namespaces

Gets the list of children namespaces of the current namespace the DeclaringAssembly. In case of partial compilations (see IsPartial), this collection only contain the namespaces in the current partial compilation.

ParentNamespace

Methods

Name Description
GetDescendant(string)

Gets a descendant of the current namespace.

ToRef()

Extension Methods