That's a tough question, because the actual type can be:
- A type declared somewhere in your project. In this case you must use
Project.CodeModel.CodeElements, etc. to locate it.
- A type declared somewhere in a referenced project. In this case you must
use CType(Project.Object, VSProject).References, get the
Reference.SourceProject property and use again
Project.CodeModel.CodeElements-
- A type declared somewhere in a referenced assembly. In this case you must
use Reflection to find it, the GetExportedTypes function.

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
> Ok, so the CodeParameter.Type gives me the string of the type in
> question but is there any way I can get back to the actual CodeElement
> that represents the definition of that type?
>
> Thanks,
> Alex
alex.mcmorris@gmail.com - 06 Feb 2006 08:12 GMT
That's awesome. That's exactly what I need. Although, is a string
name match the strongest relationship one can glean? I guess since
they are identifiers and as long as namespaces are processed properly
it had better be unique.
Thanks!
Alex