Property LoopIndex
LoopIndex
Zero-based iteration index when this activity runs inside a ForEach body; zero
otherwise.
public int LoopIndex { get; init; }
Property Value
Remarks
The body sees the index rather than the item, because the item is not separate state — it lives in Data, which is the only thing checkpointed. An activity indexes the same collection the loop selected.