From dd77f2ac503025e7b39e2762e88f839dfcdc1c15 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 5 Feb 2022 23:15:53 +0100 Subject: [PATCH] Correct documentation and API definition of ITypeDefinition.EnumUnderlyingType: it should return null for non-enum types. --- ICSharpCode.Decompiler/TypeSystem/ITypeDefinition.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ICSharpCode.Decompiler/TypeSystem/ITypeDefinition.cs b/ICSharpCode.Decompiler/TypeSystem/ITypeDefinition.cs index b21cc75c0..8574dd681 100644 --- a/ICSharpCode.Decompiler/TypeSystem/ITypeDefinition.cs +++ b/ICSharpCode.Decompiler/TypeSystem/ITypeDefinition.cs @@ -43,9 +43,9 @@ namespace ICSharpCode.Decompiler.TypeSystem /// /// For enums: returns the underlying primitive type. - /// For all other types: returns . + /// For all other types: returns . /// - IType EnumUnderlyingType { get; } + IType? EnumUnderlyingType { get; } /// /// For structs: returns whether this is a readonly struct.