Class UsingScope
- Namespace
- ICSharpCode.Decompiler.CSharp.TypeSystem
- Assembly
- ICSharpCode.Decompiler.dll
Represents a scope that contains "using" statements. This is either the file itself, or a namespace declaration.
public class UsingScope : AbstractFreezable, IFreezable
- Inheritance
-
UsingScope
- Implements
- Inherited Members
Constructors
UsingScope()
Creates a new root using scope.
public UsingScope()
UsingScope(UsingScope, string)
Creates a new nested using scope.
public UsingScope(UsingScope parent, string shortName)
Parameters
parent
UsingScopeThe parent using scope.
shortName
stringThe short namespace name.
Properties
ExternAliases
public IList<string> ExternAliases { get; }
Property Value
NamespaceName
public string NamespaceName { get; }
Property Value
Parent
public UsingScope Parent { get; }
Property Value
ShortNamespaceName
public string ShortNamespaceName { get; }
Property Value
UsingAliases
public IList<KeyValuePair<string, TypeOrNamespaceReference>> UsingAliases { get; }
Property Value
Usings
public IList<TypeOrNamespaceReference> Usings { get; }
Property Value
Methods
FreezeInternal()
protected override void FreezeInternal()
HasAlias(string)
Gets whether this using scope has an alias (either using or extern) with the specified name.
public bool HasAlias(string identifier)
Parameters
identifier
string
Returns
Resolve(ICompilation)
Resolves the namespace represented by this using scope.
public ResolvedUsingScope Resolve(ICompilation compilation)
Parameters
compilation
ICompilation