I could not figure it out how to update an item of a generic list after review all the questions posted here, I'm sorry for that. Here is my question:
I have this structure:
List<LineInfo> Lines = new List<LineInfo>();
LineInfo LInfo;
struct LineInfo
{
public int line;
public int WO;
public string Brand;
public string Model;
public string Customer;
public int Qty;
public int Target;
public string Leader;
public string Start;
public string End;
public int Percent;
}
And I want to update the field "Percent" of one of the LInfo items entered, I have the current position (aCurrentLine).
LInfo.Percent = Convert.ToInt32((RealProduced / DesireProd) * 100);
Lines[aCurrentLine]....?
Please advise, thanks.