praeclarum / FuGetGallery

An alternative web UI for browsing nuget packages
https://www.fuget.org
MIT License
683 stars 121 forks source link

Properly display `unmanaged` generic constraint #162

Open Rekkonnect opened 2 years ago

Rekkonnect commented 2 years ago

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>()
siegfriedpammer commented 2 years ago

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