dotnet / dotNext

Next generation API for .NET
https://dotnet.github.io/dotNext/
MIT License
1.56k stars 119 forks source link

Fix DotNext.Reflection.TypeExtensions.IsUnmanaged #203

Closed Emik03 closed 7 months ago

Emik03 commented 7 months ago

This fixes the return value of the function, as right now it falsely returns false for generic types whose parameters are specified as unmanaged.

Minimal Reproducible Example:

typeof((int, int)).IsUnmanaged() // false, expected true
Emik03 commented 7 months ago

@dotnet-policy-service agree