Lecture overview -- Keyboard shortcut: 'u'    Next page: LINQ Concepts -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Page 1 : 11
Object-oriented Programming in C#
An Introduction to LINQ
Origin and Rationale

LINQ = Languge Integrated Query

The main ideas behind LINQ come from functional programming languages and database query languages (SQL)

  • LINQ and functional programming

    • Builds on old ideas from Lisp: Map, filter, reduce.

    • Programming without (side)effects

    • Lazy evaluation

  • LINQ and SQL

    • LINQ is a query language

    • LINQ fragments are translated to SQL (via so-called Expression Trees)

LINQ - as used from C# - can both be used on all kinds of .NET collections, and instead of SQL