If you want to modify the object in your block and then work with it in another block, then the only correct option is to use a TransformBlock
. I'd say that it is a transformation: the resulting object has the same identity as the original, but it was modified (or “transformed”) in the block.
ActionBlock
is most commonly used as the end of a pipeline, its final step. That's not what you want here, so ActionBlock
is not appropriate.