public struct rectangle
{
public decimal a;
}
that is my struct and i have a list of struct rectangles
list<rectangle> dataRectangle= new list<rectangle>();
now i have already added some structs into the list now i would like to change the value of a struct present in a list like
dataRectangle[0].a=0;
it says
cannot modify the return value ' list<form4.rectangle>.this[int] ' because it is not a variable
help why is this coming and is there another way to modify