Can we update external variable through linq, i.e., can we update a variable which is not being used in linq's scope through a linq?
For example, this is what I tried:
var s = list_UIModes_And_Related_Actions_Details
.Select(x => x.ActionIdList)
.Select(y => modeAndActionRelationTable[Counter++] = Convert.ToByte(y));
But this line doesn't update modeAndActionRelationTable array.