Search code examples
windowsworkflow-foundation-4

What's the difference between System.Workflow.ComponentModel.activity and System.activities.activity


There seem to be 2 classes that relates to workflow Activities in .NET 4: System.Workflow.ComponentModel.Activity and System.activities.Activity

What's the difference between the two?


Solution

  • The first one ("System.Activities...") is from Workflow Foundation 3.0 and the second one ("System.Workflow...") is for Workflow Foundation 4.0.

    There was a substantial rewrite (for the better imho) between the two. 3.0 workflow activities can be used in 4.0 via migration or via interop.