Browse Source

Correct documentation and API definition of ITypeDefinition.EnumUnderlyingType: it should return null for non-enum types.

pull/2643/head
Siegfried Pammer 4 years ago
parent
commit
dd77f2ac50
  1. 4
      ICSharpCode.Decompiler/TypeSystem/ITypeDefinition.cs

4
ICSharpCode.Decompiler/TypeSystem/ITypeDefinition.cs

@ -43,9 +43,9 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -43,9 +43,9 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// <summary>
/// For enums: returns the underlying primitive type.
/// For all other types: returns <see cref="SpecialType.UnknownType"/>.
/// For all other types: returns <see langword="null"/>.
/// </summary>
IType EnumUnderlyingType { get; }
IType? EnumUnderlyingType { get; }
/// <summary>
/// For structs: returns whether this is a readonly struct.

Loading…
Cancel
Save