I am developing an extension for visual studio with adornment. I have to put label above every class and methods in active document.
Now my problem is how can I get all the methods and classes? I searched for it but none of them shows the exact solution.
Thanks in advance!
This is how I started my search for code elements.This recursive methods are shown below that searches the whole active document for me and get me list of element as per my requirement.
For the searching of class:
For searching methods:
I found this solution through GitHub which is showing this same logic.