lundi 26 novembre 2018

Roslyn: how to get type dependencies from a method's body with no source code

I want to collect all types used/referenced from within an assembly using Roslyn. This works fine for all type usages, except for the types used in local variable declarations.

Without Roslyn I would use the LocalVariable property of a MethodBody object of the C# reflection API.

My question is how to do this with Roslyn?





Aucun commentaire:

Enregistrer un commentaire