Friday, September 25, 2009

System.IndexOutOfRangeException was unhandled (Message="Index was outside the bounds of the array.")

on C# or vb.net we are using array,Array is one of the best way to mentain collection of data together and proper way ,

here is one Error which get call whenever some problem with size and all

The exception that is thrown when an attempt is made to access an element of an array with an index that is outside the bounds of the array. This class cannot be
inherited.

.NET arrays have base 0 and should be kept in mind when coding.


ones you got this error you have to resize your array size, accroding to your requirements

No comments:

Post a Comment