Table of Contents

Class MemberTypeOrNamespaceReference

Namespace
ICSharpCode.Decompiler.CSharp.TypeSystem
Assembly
ICSharpCode.Decompiler.dll

Reference to a qualified type or namespace name.

public sealed class MemberTypeOrNamespaceReference : TypeOrNamespaceReference, ITypeReference, ISupportsInterning
Inheritance
MemberTypeOrNamespaceReference
Implements
Inherited Members

Constructors

MemberTypeOrNamespaceReference(TypeOrNamespaceReference, string, IList<ITypeReference>, NameLookupMode)

public MemberTypeOrNamespaceReference(TypeOrNamespaceReference target, string identifier, IList<ITypeReference> typeArguments, NameLookupMode lookupMode = NameLookupMode.Type)

Parameters

target TypeOrNamespaceReference
identifier string
typeArguments IList<ITypeReference>
lookupMode NameLookupMode

Properties

Identifier

public string Identifier { get; }

Property Value

string

LookupMode

public NameLookupMode LookupMode { get; }

Property Value

NameLookupMode

Target

public TypeOrNamespaceReference Target { get; }

Property Value

TypeOrNamespaceReference

TypeArguments

public IList<ITypeReference> TypeArguments { get; }

Property Value

IList<ITypeReference>

Methods

AddSuffix(string)

Adds a suffix to the identifier. Does not modify the existing type reference, but returns a new one.

public MemberTypeOrNamespaceReference AddSuffix(string suffix)

Parameters

suffix string

Returns

MemberTypeOrNamespaceReference

Resolve(CSharpResolver)

Resolves the reference and returns the ResolveResult.

public override ResolveResult Resolve(CSharpResolver resolver)

Parameters

resolver CSharpResolver

Returns

ResolveResult

ResolveType(CSharpResolver)

Returns the type that is referenced; or an UnknownType if the type isn't found.

public override IType ResolveType(CSharpResolver resolver)

Parameters

resolver CSharpResolver

Returns

IType

ToString()

public override string ToString()

Returns

string