|
|
|
@ -148,7 +148,9 @@ namespace ICSharpCode.Decompiler.TypeSystem.Implementation
@@ -148,7 +148,9 @@ namespace ICSharpCode.Decompiler.TypeSystem.Implementation
|
|
|
|
|
{ |
|
|
|
|
this.corlib = corlib; |
|
|
|
|
this.typeCode = typeCode; |
|
|
|
|
this.typeKind = KnownTypeReference.Get(typeCode).typeKind; |
|
|
|
|
KnownTypeReference ktr = KnownTypeReference.Get(typeCode); |
|
|
|
|
this.typeKind = ktr.typeKind; |
|
|
|
|
this.MetadataName = ktr.Name + (ktr.TypeParameterCount > 0 ? "`" + ktr.TypeParameterCount : ""); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
IReadOnlyList<ITypeDefinition> ITypeDefinition.NestedTypes => EmptyList<ITypeDefinition>.Instance; |
|
|
|
@ -164,6 +166,8 @@ namespace ICSharpCode.Decompiler.TypeSystem.Implementation
@@ -164,6 +166,8 @@ namespace ICSharpCode.Decompiler.TypeSystem.Implementation
|
|
|
|
|
|
|
|
|
|
public FullTypeName FullTypeName => KnownTypeReference.Get(typeCode).TypeName; |
|
|
|
|
|
|
|
|
|
public string MetadataName { get; } |
|
|
|
|
|
|
|
|
|
ITypeDefinition IEntity.DeclaringTypeDefinition => null; |
|
|
|
|
IType ITypeDefinition.DeclaringType => null; |
|
|
|
|
IType IType.DeclaringType => null; |
|
|
|
|