How to pass lambda expressions as parameter in C#
问题 I am beginner at using lambda expressions. I have a list of dealers, foreach dealer I have to calculate grade. The request is that the grade calculation to be separated into a separate method. So I am writing the below two methods, however I am unable to pass parameters to CalculateGrade() method, public IEnumerable<Dealers> GetDealerGrades(IEnumerable<Dealers> gradeData) { return gradeData .GroupBy(row => new { row.Name }) .Select(g => new Dealers { Name = g.Key.Name, TotalPoints =