Class CSharpTypeResolveContext
- Namespace
- ICSharpCode.Decompiler.CSharp.TypeSystem
- Assembly
- ICSharpCode.Decompiler.dll
public sealed class CSharpTypeResolveContext : ITypeResolveContext, ICompilationProvider
- Inheritance
-
CSharpTypeResolveContext
- Implements
- Inherited Members
Constructors
CSharpTypeResolveContext(IModule, ResolvedUsingScope, ITypeDefinition, IMember)
public CSharpTypeResolveContext(IModule module, ResolvedUsingScope usingScope = null, ITypeDefinition typeDefinition = null, IMember member = null)
Parameters
module
IModuleusingScope
ResolvedUsingScopetypeDefinition
ITypeDefinitionmember
IMember
Properties
Compilation
Gets the parent compilation. This property never returns null.
public ICompilation Compilation { get; }
Property Value
CurrentMember
Gets the current member.
public IMember CurrentMember { get; }
Property Value
CurrentModule
Gets the current module. This property may return null if this context does not specify any module.
public IModule CurrentModule { get; }
Property Value
CurrentTypeDefinition
Gets the current type definition.
public ITypeDefinition CurrentTypeDefinition { get; }
Property Value
CurrentUsingScope
public ResolvedUsingScope CurrentUsingScope { get; }
Property Value
Methods
WithCurrentMember(IMember)
public CSharpTypeResolveContext WithCurrentMember(IMember member)
Parameters
member
IMember
Returns
WithCurrentTypeDefinition(ITypeDefinition)
public CSharpTypeResolveContext WithCurrentTypeDefinition(ITypeDefinition typeDefinition)
Parameters
typeDefinition
ITypeDefinition
Returns
WithUsingScope(ResolvedUsingScope)
public CSharpTypeResolveContext WithUsingScope(ResolvedUsingScope usingScope)
Parameters
usingScope
ResolvedUsingScope