In This Article

INamespaceDeclaration Interface

Provides the base requirements of a namespace declaration that encloses types declared in a source file.

public interface INamespaceDeclaration

Properties

AliasedUsingDirectives

The collection of aliased using directives within the namespace declaration.

IList<IAliasedUsingDirective> AliasedUsingDirectives { get; }

Property Value

IList<IAliasedUsingDirective>

ExternalAliasDirectives

The collection of external alias directives within the namespace declaration.

IList<IExternalAliasDirective> ExternalAliasDirectives { get; }

Property Value

IList<IExternalAliasDirective>

FullName

The full name of the namespace, which includes the names of ancestor namespaces.

string FullName { get; }

Property Value

string

Name

The name of the namespace.

string Name { get; }

Property Value

string

Parent

The INamespaceDeclaration that contains this namespace declaration.

INamespaceDeclaration? Parent { get; }

Property Value

INamespaceDeclaration

UsingDirectives

The collection of using directives within the namespace declaration.

IList<IUsingDirective> UsingDirectives { get; }

Property Value

IList<IUsingDirective>

Extension Methods