O'Reilly logo

Beginning WF: Windows Workflow in .NET 4.0 by Mark Collins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 18. Collections

WF 4.0 provides some built-in activities that enable you to manipulate a collection in your workflow. In this chapter, you'll build a console application that demonstrates these activities using a shopping list application.

Creating a Collection

Start by creating a console application project in Visual Studio. For the project name, use ShoppingList; for the solution name, enter Chapter18, as shown in Figure 18-1.

Creating a console application

Figure 18-1. Creating a console application

From the Solution Explorer, right-click the ShoppingList project and choose Add Reference. From the .NET tab, add a reference to System.Activities.

Defining the Shopping List ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required