Linq and lambda expression

前端 未结 3 565
盖世英雄少女心
盖世英雄少女心 2020-12-18 08:56

What is the difference between LINQ and Lambda Expressions? Are there any advantages to using lambda instead of linq queries?

3条回答
  •  甜味超标
    2020-12-18 09:50

    In a nutshell:

    LINQ is a quering technology (Language Integrated Query). LINQ makes extensive use of lambda's as arguments to standard query operator methods such as the Where clause.

    A lambda expression is an anonymous function that contain expressions and statements. It is completely separate and distinct from LINQ.

提交回复
热议问题