I hit my head against the wall for 25 minutes, trying to understand why I canβt access the first index of the array, which I tried to make with the array [0]. I continued to get the index of the array from the exception bounds. To see what happens, I tried using the array [1] ... and it worked. In excellence. I have no idea why.
for (int i = 1; i < itemCounter+1; i++) { if (explorer.CurrentFolder.Items[i] is Outlook.MailItem) {
Everything works perfectly. What's going on here?
source share