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

The collection of child INamespaceDefinition objects within this namespace.

INamespaceDefinitionCollection Children { get; }

Property Value

INamespaceDefinitionCollection

ExtensionMethods

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

ITypeMemberDefinitionCollection ExtensionMethods { get; }

Property Value

ITypeMemberDefinitionCollection

FullName

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

string FullName { get; }

Property Value

string

StandardModules

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

ITypeDefinitionCollection StandardModules { get; }

Property Value

ITypeDefinitionCollection

Types

The collection of ITypeDefinition objects within this namespace.

ITypeDefinitionCollection Types { get; }

Property Value

ITypeDefinitionCollection

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

Extension Methods