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
ITypeReferenceReference to the declaring type.
name
stringName of the nested class
additionalTypeParameterCount
intNumber 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
DeclaringTypeReference
public ITypeReference DeclaringTypeReference { get; }
Property Value
Name
public string Name { get; }
Property Value
Methods
Resolve(ITypeResolveContext)
public IType Resolve(ITypeResolveContext context)
Parameters
context
ITypeResolveContext
Returns
ToString()
public override string ToString()