I have created an IList variable as below:
IList<vertex> matrix = new List<vertex> ();
Here, vertex is a structure I defined with one of the members being visited (boolean).
But, when I try to modify this member by traversing through the list as below:
matrix[j].visited = false;
It gives an error saying "Cannot modify return value because it is not a variable". Any idea why?