it means that you are accessing an
index
value which is not present in
collection
.
before accessing a particular index, make sure that the index is available in that collection.
example:
consider this list:
CashReceiveList
, you are trying to access the list with
index 5
.
now you have check for index 5 is available in the collection. as
if( CashReceiveList.Count > 5 )
{ var somevariable = CashReceiveList[5]; }