Table of Contents

Class SimpleTypeOrNamespaceReference

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

Represents a simple C# name. (a single non-qualified identifier with an optional list of type arguments)

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

Constructors

SimpleTypeOrNamespaceReference(string, IList<ITypeReference>, NameLookupMode)

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

Parameters

identifier string
typeArguments IList<ITypeReference>
lookupMode NameLookupMode

Properties

Identifier

public string Identifier { get; }

Property Value

string

LookupMode

public NameLookupMode LookupMode { get; }

Property Value

NameLookupMode

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 SimpleTypeOrNamespaceReference AddSuffix(string suffix)

Parameters

suffix string

Returns

SimpleTypeOrNamespaceReference

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