Extension methods syntax vs query syntax

后端 未结 7 1119
伪装坚强ぢ
伪装坚强ぢ 2020-11-27 12:42

I\'m trying to get a handle on if there\'s a good time to use standard linq keywords or linq extension methods with lambda expressions. They seems to do the same thing, jus

7条回答
  •  一向
    一向 (楼主)
    2020-11-27 13:45

    I prefer the extension method syntax when I use Linq methods that have no query syntax equivalent, such as FirstOrDefault() or others like that.

提交回复
热议问题