ProtoFlux talk:ForEachWithIndex
Discussion page of ProtoFlux:ForEachWithIndex
More actions
Latest comment: 10 days ago by Electra in topic https://discord.com/channels/1040316820650991766/1154514007479287942/1549246699933794487
Decompiled:
int count = _collection.Count;
for (int i = 0; i < count; i++)
{
if (context.AbortExecution) throw new ExecutionAbortedException(...);
if (_reverse)
i = count - i - 1;
Index.Write(i, context);
WriteElement(_collection[i], context);
LoopIteration.Execute(context);
}
}int count = _collection.Count;
for (int i = 0; i < count; i++)
{
if (context.AbortExecution) throw new ExecutionAbortedException(...);
if (_reverse)
i = count - i - 1;
Index.Write(i, context);
WriteElement(_collection[i], context);
LoopIteration.Execute(context);
}
}