GroupBy with linq method syntax (not query syntax)

前端 未结 4 1639
悲&欢浪女
悲&欢浪女 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:35

    Since the compiler does this translation for you, fire up Reflector and take a look.

提交回复
热议问题