Geeks With Blogs

News My Blog has been MOVED to
Michael Freidgeim's OLD Blog My Blog has been MOVED to

I’ve created an extension method  to Find Sibling Activity by name
Based on example from
public static TActivity FindSiblingActivity<TActivity>(this Activity sender,string activityName) where TActivity:Activity
//CodeActivity thisActivityInstance = sender as   CodeActivity;sender.
Activity parent =   sender.Parent;
   var retActivity=parent.GetActivityByName(activityName) as TActivity;
   Debug.Assert(sender.IsDynamicActivity==retActivity.IsDynamicActivity," EXPECTED BOTH BE DYNAMIC");
   return retActivity;
Related links

Posted on Tuesday, May 17, 2011 7:07 AM Workflow | Back to top

Comments on this post: An extension method to Find Sibling Activity

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Michael Freidgeim | Powered by: