vendredi 2 octobre 2020

How to identify members returning and or accepting the dynamic type

Is there any possibility to figure out whether a return or argument type of a member is dynamic? The issue is that is compiles down to System.Object.

I've observed that if a member accepting arguments has a dynamic type present in its signature, an additional argument A_0 will be added.

enter image description here

Are there any more tricks to figure out that a type is dynamic using reflection?

I'm using dnlib as my reflection library. The solution should work for all dotnet platforms; however, if it is limited to .NET Core, no biggie.

The project I'm working on is a Markdown documentation generator for C# libraries - you can find it here.

Thank you for any suggestions.





Aucun commentaire:

Enregistrer un commentaire