I don't know why this error happens. Please help me..
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
Here is my code:
var index = newData.FindIndex(x => x.description == item.description);
if (index ==-1)
index = 0;
var itemInIndex = newData[index];
The error I get is on this line, where it says:
var itemInIndex = newData[index];