Class MergedNamespace
- Namespace
- ICSharpCode.Decompiler.TypeSystem.Implementation
- Assembly
- ICSharpCode.Decompiler.dll
A merged namespace.
public sealed class MergedNamespace : INamespace, ISymbol, ICompilationProvider
- Inheritance
-
MergedNamespace
- Implements
- Inherited Members
Constructors
MergedNamespace(ICompilation, INamespace[], string)
Creates a new merged root namespace.
public MergedNamespace(ICompilation compilation, INamespace[] namespaces, string externAlias = null)
Parameters
compilation
ICompilationThe main compilation.
namespaces
INamespace[]The individual namespaces being merged.
externAlias
stringThe extern alias for this namespace.
MergedNamespace(INamespace, INamespace[])
Creates a new merged child namespace.
public MergedNamespace(INamespace parentNamespace, INamespace[] namespaces)
Parameters
parentNamespace
INamespaceThe parent merged namespace.
namespaces
INamespace[]The individual namespaces being merged.
Properties
ChildNamespaces
Gets the child namespaces in this namespace.
public IEnumerable<INamespace> ChildNamespaces { get; }
Property Value
Compilation
Gets the parent compilation. This property never returns null.
public ICompilation Compilation { get; }
Property Value
ContributingModules
Gets the modules that contribute types to this namespace (or to child namespaces).
public IEnumerable<IModule> ContributingModules { get; }
Property Value
ExternAlias
Gets the extern alias for this namespace. Returns an empty string for normal namespaces.
public string ExternAlias { get; }
Property Value
FullName
Gets the full name of this namespace. (e.g. "System.Collections")
public string FullName { get; }
Property Value
Name
Gets the short name of this namespace (e.g. "Collections").
public string Name { get; }
Property Value
ParentNamespace
Gets the parent namespace. Returns null if this is the root namespace.
public INamespace ParentNamespace { get; }
Property Value
SymbolKind
This property returns an enum specifying which kind of symbol this is (which derived interfaces of ISymbol are implemented)
public SymbolKind SymbolKind { get; }
Property Value
Types
Gets the types in this namespace.
public IEnumerable<ITypeDefinition> Types { get; }
Property Value
Methods
GetChildNamespace(string)
public INamespace GetChildNamespace(string name)
Parameters
name
string
Returns
GetTypeDefinition(string, int)
public ITypeDefinition GetTypeDefinition(string name, int typeParameterCount)
Parameters
Returns
ToString()
public override string ToString()