Table of Contents

Class NestedTypeReference

Namespace
ICSharpCode.Decompiler.TypeSystem.Implementation
Assembly
ICSharpCode.Decompiler.dll

Type reference used to reference nested types.

public sealed class NestedTypeReference : ITypeReference, ISupportsInterning
Inheritance
NestedTypeReference
Implements
Inherited Members

Constructors

NestedTypeReference(ITypeReference, string, int, bool?)

Creates a new NestedTypeReference.

public NestedTypeReference(ITypeReference declaringTypeRef, string name, int additionalTypeParameterCount, bool? isReferenceType = null)

Parameters

declaringTypeRef ITypeReference

Reference to the declaring type.

name string

Name of the nested class

additionalTypeParameterCount int

Number of type parameters on the inner class (without type parameters on baseTypeRef)

isReferenceType bool?

Remarks

declaringTypeRef must be exactly the (unbound) declaring type, not a derived type, not a parameterized type. NestedTypeReference thus always resolves to a type definition, never to (partially) parameterized types.

Properties

AdditionalTypeParameterCount

public int AdditionalTypeParameterCount { get; }

Property Value

int

DeclaringTypeReference

public ITypeReference DeclaringTypeReference { get; }

Property Value

ITypeReference

Name

public string Name { get; }

Property Value

string

Methods

Resolve(ITypeResolveContext)

public IType Resolve(ITypeResolveContext context)

Parameters

context ITypeResolveContext

Returns

IType

ToString()

public override string ToString()

Returns

string