0xd4d / dnlib

Reads and writes .NET assemblies and modules
MIT License
2.18k stars 587 forks source link

Improve IsValueType for GenericSig #529

Closed CreateAndInject closed 1 year ago

wtfsck commented 1 year ago

Can you explain why this is an improvement?

CreateAndInject commented 1 year ago

Since we know if it's ValueType exactly in these cases.

CreateAndInject commented 1 year ago

Reflection check type constraint also: image

wtfsck commented 1 year ago

This resolves a type which no other function in that file does. It's better if you create an extension method to your code and add this code to it.