GroupBy with linq method syntax (not query syntax)

前端 未结 4 1634
悲&欢浪女
悲&欢浪女 2021-01-03 23:18

How would the following query look if I was using the extension method syntax?

var query = from c in checks
group c by string.Format(\"{0} - {1}\", c.Custome         


        
4条回答
  •  渐次进展
    2021-01-03 23:37

    I know this is a old question, but for new readers, take a look at this gitub code.

    This use Roslyn to take query syntax and convert it to extension method syntax.

提交回复
热议问题