What is an IndexOutOfRangeException / ArgumentOutOfRangeException and how do I fix it?
[*] What Is It? This exception means that you’re trying to access a collection item by index, using an invalid index. An index is invalid when it’s lower than the collection’s lower bound or greater than or equal to the number of elements it contains. When It Is Thrown Given an array declared as: byte[] … Read more