In This Article

INamespaceDefinition Interface

Provides the base requirements of a namespace that can contain types and other nested namespaces.

public interface INamespaceDefinition : IReflectionDefinition

Properties

Children

Gets the collection of child INamespaceDefinition objects within this namespace.

INamespaceDefinitionCollection Children { get; }

Property Value

INamespaceDefinitionCollection:

The collection of child INamespaceDefinition objects within this namespace.

ExtensionMethods

Gets the collection of extension methods that are contained in the namespace.

ITypeMemberDefinitionCollection ExtensionMethods { get; }

Property Value

ITypeMemberDefinitionCollection:

The collection of extension methods that are contained in the namespace.

FullName

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

string FullName { get; }

Property Value

string:

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

StandardModules

Gets the collection of standard modules that are contained in the namespace.

ITypeDefinitionCollection StandardModules { get; }

Property Value

ITypeDefinitionCollection:

The collection of standard modules that are contained in the namespace.

Types

Gets the collection of ITypeDefinition objects within this namespace.

ITypeDefinitionCollection Types { get; }

Property Value

ITypeDefinitionCollection:

The collection of ITypeDefinition objects within this namespace.

Methods

ToTreeString(int)

Outputs the contents of the namespace in tree form.

string ToTreeString(int indentLevel)
Parameter Type Description
indentLevel int

The indentation level.

Returns

string:

A string containing the tree form of the namespace.

Inherited Members