O'Reilly logo

Microsoft® Windows® Workflow Foundation Step by Step by Kenn Scribner

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

Using the Replicator Activity

It would be incorrect to say that the Replicator activity is equivalent to a for loop in C# processing terms. The C# Language Specification 1.2 tells us the for loop in C# looks like the following:

for ( for-initializer ; for-condition ; for-iterator ) embedded-statement

embedded-statement is executed until the for-condition evaluates to true (if omitted, it’s assumed to be true), beginning with for-initializer and executing for-iterator for every iteration. There is nothing mentioned regarding replication in any of the C# for statement components. With replication, we envision a cookie-cutter software factory that stamps out exact replicas of the original code. C# for loops don’t operate in this fashion.

In fact, the ...

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