I have a Workflow 4 activity that can be run on any number of classes that inherit from my base class. Thus, the activity, of course, is general in nature. Like ForEach or AddToCollection actions, my activity requires a type parameter.
My question is: can I create this work in the designer using XAML? Keep in mind that this is a complex activity, so the developer seems to be the best choice.
If I created it in code, it would look like this:
public class MyGenericActivity<T> : Activity where T : MyBaseClass {
Although this solution will work, the service will certainly be painful, and you will not get any of the βsubtletiesβ of the designer in this way.
source share