This chapter is from the book
The Code Activity
The code activity stands alone. It permits quick adding of a code handler anywhere in the workflow.
A Code activity (shown in Figure 3.22) enables you to add some C# or Visual Basic .NET code into any part of a workflow just by dragging it in and double-clicking on it. This is a very simple form of a custom activity. The code entered in this way lives in the code-beside file that is compiled with the workflow.
Figure 3.22 A Code activity.