Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Examining the items in a solution
 

Examining the items in a solution


I have an unbound item reference for a recipe.  I want this recipe to be available whenever a classes in a solution implement a certain interface.  I have most of it working (finally...).  The main issue I'm having currently is adding the right logic to the "IsEnabledFor" method on the the reference class (derived from UnboundRecipeReference). 

I thought I would be able to use something like:

    if (target is CodeClass)
{
    ...
}

and then cycle through the ImplementedInterfaces property, but I always get a false.  So I did some digging and it seems that the "object" being passed to my "IsEnabledFor" method is of type System.__ComObject, rather than CodeClass.  Am I doing something wrong or is there a way to get at what I want from this type?

Thanks for any help!
dwj  Wednesday, September 14, 2005 1:19 PM
Here's the answer posted on a another forum:

http://www.guidanceautomation.net/forums/49/ShowPost.aspx
dwj  Thursday, September 15, 2005 3:17 PM
Here's the answer posted on a another forum:

http://www.guidanceautomation.net/forums/49/ShowPost.aspx
dwj  Thursday, September 15, 2005 3:17 PM

You can use google to search for other answers

Custom Search

More Threads

• HOL006 problem - Exercise 2
• UnfoldTempalteAction replacing parameters
• Installation error
• Error "System.ArgumentNullException: Key cannot be null" when i add twice same project item
• The registry hive containing the path information for the EntLib assemblies can not be found. The repository classes can be crea
• Schema Discovery component
• Guidance Automation Kit installation issues
• Guidance package solution lost recipes
• Programatically moving Projects within a Solution
• Setup created using 1.3 doesent install on GAX 1.4