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 ...

Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.