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)
C# Language
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jignesh TrivediRank #16 · 50.3K reputationPosted Feb 26, 2012, 5:49 PM EST
we got ur problem.
but where is your code?
Kindly share withus..
Sam HobbsRank #107 · 20.5K reputationPosted Feb 26, 2012, 9:15 PM EST
VulpesRank #55 · 29.2K reputationPosted Feb 27, 2012, 1:13 AM EST