Accessing attribute info from DTE
I have coded something like the following: [Attrib(typeof(MyCustomType))] public class TargetType { // ..... } I want to use EnvDTE to get a reference to the CodeElement referenced by the typeof . I know how to get a reference to the attribute argument, and I can use Value , but that gives me the string typeof(MyCustomType) . If I use Value , I have to break down the string and then try to find the type, which gets hairy if there are two types with the same name but different namespaces. Is there an easier way to do this? Is there an easier way to do this? No, I don't think so, atleast for a <