Comments
Sort by recent activity
I also am trying to leverage Analyze programmatically. Does anyone have an example of this? (Or a definitive answer as to why this isn't possible?)
Regards,
Scott Koland. / comments
I also am trying to leverage Analyze programmatically. Does anyone have an example of this? (Or a definitive answer as to why this isn't possible?)
Regards,
Scott Koland.
Hi Jason,
Specifically, I am trying to call Analyze -> Instantiated By for every class in a selected namespace. My goal is to find all instance calls of a namespace in a large codebase (hundreds of objects), and output to the Clipboard or a text file. [Ideally, I'll also add filtering to the iterator - I'm looking for a grouping of specific namespaces that are referenced.]
Basically, I'm trying to do the same thing in code as your PowerCommands Add-In in the "Export Tree as Text" option. But without opening each Analyzer window on each class. [Thanks for all the excellent documentation on your site, btw.]
Something like the following: StringBuilder resultSet;
foreach(var type in selectedNamespaceItem.Types)
{
if(type is IType){
resultSet.Append( Analyze(type) );
}
}
But I'm not sure if it is possible or how to go about calling Analyze in code.
Thanks, Scott. / comments
Hi Jason,
Specifically, I am trying to call Analyze -> Instantiated By for every class in a selected namespace. My goal is to find all instance calls of a namespace in a large codebase (hundreds of...