Convert to Method Group Resharper

前端 未结 3 863
盖世英雄少女心
盖世英雄少女心 2021-01-17 07:24

I have written a method below like this:

internal static IList GetEmpowerTaxViewsByLongAgencyAndAgencyTaxTypes(
   IList

        
3条回答
  •  不思量自难忘°
    2021-01-17 08:12

    JaredPar already provided the correct answer, I just wanted to suggest a simpler implementation of the method:

    internal static IList GetEmpowerTaxViewsByLongAgencyAndAgencyTaxTypes(
        IList validEmpowerCompanyTaxDatas,
        IList empowerTaxViews)
    {
        var results =
            from empowerCompanyTaxData in validEmpowerCompanyTaxDatas
            from etv in GetEmpowerTaxViewsByLongAgencyAndTaxType(
                empowerCompanyTaxData, empowerTaxViews)
            select etv;
        return results.ToList();
    }
    

提交回复
热议问题