Get all types referenced by the given type with roslyn

328 Views Asked by At

I want to get the types that current type is referencing, just like in Visual Studio code map "Show the types this references". I can load solution, find the project and get the symbol for my type of interest. And at this point I'm stuck. Can't find any example or documentation, how to get symbols from the given symbol.

The overall task if following: I have a really big legacy solution. I need to take some functionality from it to the new one. I find the key class, then I take it to my new solution. Of course there are lots of references which I have to resolve manually. I want to use roslyn to get the list of all references for a class and take them in one step to the new solution.

0

There are 0 best solutions below