Updating an item using LINQ

susi

New Member
Good day!I wish to update an item using LINQ. I tried this query.\[code\]string option = "new value here";(jt.SummarySpecs.Select(x => x.DocSpecs) .FirstOrDefault() .Where( y => y.DelItemID == docSpc.DelItemID && y.ItemCode == docSpc.ItemCode ) .FirstOrDefault().FinishingOptionsDesc[0]) = option;\[/code\]I wish to update the value of "FinishingOptionDesc," this is a collection of string values but I only wish to update the 1st one.But the code above is not working.Please help.Thanks.
 
Top