Extension methods syntax vs query syntax

后端 未结 7 1108
伪装坚强ぢ
伪装坚强ぢ 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:25

    One advantage of extension methods/lynda expressions is the additional operators that is offered like Skip and Take. For example, if you are creating a pagination method, being able to skip the first 10 records and take the next 10 is easy to implement.

提交回复
热议问题