Lets say I`m using a LING query on a List of objects of type ObjABC. How do I update the values of the List? Lets say I get some results out of the query. I need to update the results so that it reflects in the original List.
Casting ObjVar to the object type doesn`t seem to work.
In simple terms, I need to update the original ObjList with values from ObjVar (I do some calculation here...For the sake of soimplicity I`m multiplying the values by 120 and 190). Hope that makes sense.
var ObjVar = from Info in ObjList
group Info by Info.Time into Grp
Time = Grp.Key,
A = Grp.Max(Ent => (Ent.Alpha == Enum.A) ? Ent.Delta : (double?)null) * 120,
B = Grp.Max(Ent => (Ent.Alpha == Enum.B) ? Ent.Delta : (double?)null) * 190,
ObjList = (ObjectABC)ObjVar.ToList(); //Error Here