Click or drag to resize

INamespace Interface

This interface is implemented by all code objects that represent namespace declarations (Namespace and Alias).

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public interface INamespace : INamedCodeObject

The INamespace type exposes the following members.

Properties
  NameDescription
Public propertyCategory
The descriptive category of the CodeObject.
(Inherited from INamedCodeObject.)
Public propertyChildren
The dictionary of child types and namespaces in the Namespace.
Public propertyFullName
The full name of the Namespace, including any parent namespaces.
Public propertyHasDeclarationsInProject
True if this Namespace has NamespaceDecl declarations in the current project, otherwise false (meaning items in the namespace exist only in imported assemblies and projects).
Public propertyIsGlobal
Determines if this Namespace is the project-global namespace.
Public propertyIsRootLevel
Determines if this Namespace is root-level (global or extern alias).
Public propertyName
The name of the CodeObject.
(Inherited from INamedCodeObject.)
Public propertyParent
The parent CodeObject.
Top
Methods
  NameDescription
Public methodAdd(Type)
Add a Type to the Namespace.
Public methodAdd(Namespace)
Add a child Namespace to the Namespace.
Public methodAdd(TypeDecl)
Add a TypeDecl to the Namespace.
Public methodAdd(TypeDefinition)
Add a TypeReference to the Namespace.
Public methodAddToDictionary
Add the CodeObject to the specified dictionary.
(Inherited from INamedCodeObject.)
Public methodCreateRef
Create a reference to the CodeObject.
(Inherited from INamedCodeObject.)
Public methodFind
Find a child Namespace, Type, or TypeDecl with the specified name.
Public methodFindOrCreateChildNamespace
Find or create a child Namespace, including any missing parent namespaces.
Public methodFindParentT
Find the parent object of the specified type.
(Inherited from INamedCodeObject.)
Public methodGetFullName
Get the full name of the INamedCodeObject, including any namespace name.
(Inherited from INamedCodeObject.)
Public methodParseName
Parse the specified name into a child NamespaceRef or TypeRef on the current namespace, or a Dot expression that evaluates to one.
Public methodRemove(Type)
Remove a Type from the Namespace.
Public methodRemove(Namespace)
Remove a child Namespace from the Namespace.
Public methodRemove(TypeDecl)
Remove a TypeDecl from the Namespace.
Public methodRemove(TypeDefinition)
Remove a TypeReference from the Namespace.
Public methodRemoveAll
Remove all items from the Namespace.
Public methodRemoveFromDictionary
Remove the CodeObject from the specified dictionary.
(Inherited from INamedCodeObject.)
Top
See Also