I was struggling with this for over 6 hours and I can't figure out how to do this. Suppose I have a type name like 'InvalidOperationException'. I want to resolve that string to be able to get a qualified CLR name. I'd like to get something like IDeclaredType to be able to call GetCLRName().
Can you show me how to do this?
var type = new DeclaredTypeFromCLRName(new CLRTypeName("InvalidOperationException"), declaration.DeclaredElement.Module);
but with no luck.
Thanks in advance for your help.