Circular interation between array

Posted on

Here is a tip to easly navigate between array

Next interation

int i = (i+1) % targetArray.Count

Prev interation

int  i = (i + (targetArray.Count-1)) % targetArray.Count;

Leave a Reply

Your email address will not be published.