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?