C# Language

Feb 26 2012 1:58 PM
I m sending file of (C#).cs
plz corrent my this code.i m adding a multiple veriables in a list but run time exception will occur.

Exception is :



System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative
and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argu
ment, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at MainListProgram.Main(String[] arg)


Answers (3)