FuGetGallery icon indicating copy to clipboard operation
FuGetGallery copied to clipboard

Properly display `unmanaged` generic constraint

Open Rekkonnect opened this issue 3 years ago • 1 comments

Currently, in the documentation tab, the unmanaged constraint is shown as:

void UnmanagedMethod<T>()
    where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Whereas in the code tab, it's also shown as:

void UnmanagedMethod<[System.Runtime.CompilerServices.IsUnmanaged] T>()

Rekkonnect avatar Jan 16 '22 16:01 Rekkonnect

FuGet should update to the latest version of ICSharpCode.Decompiler to fix this issue. Currently it is using version 3.2, the latest version is 7.2. If there are any questions on how to update/migrate to the latest version, feel free to ask.

The correct display would be:

void UnmanagedMethod<T>()
    where T : unmanaged

siegfriedpammer avatar Mar 04 '22 20:03 siegfriedpammer