So, I am playing with the EnvDTE and EnvDTE.CodeModel API, and I was wondering if there is a way to get the text value represented by the CodeElement .
Let's say I have a CodeAttribute , is there a way to get a string of what CodeAttribute represents, i.e. [MyAttribute(value="myvalue")] .
I know that you can recover code using various CodeElement properties, at least in some scenarios, but for some things it seems that it would be easier to just get the text.
Thanks!
Master morality
source share