LINQ is all about querying, not updating. You can use LINQ to get all managers from the list,
var managers = from e in emplst
where emplst.Any(x => x.mgrid == e.ecode.ToString())
select e;
or using JOIN
(it would require implementing Equals
and GetHashCode
methods on Employee
class to make Distinct
work:
var managers = (from e in emplst
join e2 in emplst on e.ecode.ToString() equals e2.mgrid
select e).Distinct();
and then iterate over and change the salary:
foreach(var manager in managers)
manager.salary *= 1.1;