I have written a method below like this:
internal static IList GetEmpowerTaxViewsByLongAgencyAndAgencyTaxTypes(
IList
What Resharper means is that you can express the ForEach
code more simply by using the method group Add
.
Example:
validEmpowerTaxViews.ToList().Foreach(result.Add);
The method group defined by Add
is compatible with the delegate expected by ForEach
and hence the C# compiler will take care of doing the conversion. The default in Resharper is to prefer method groups over lambdas and explicit delegate creation statements.