lect9 - Yin Lou CS 2026, Spring 2010 Assignment 2 due today...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Yin Lou CS 2026, Spring 2010
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Assignment 2 due today Assignment 3 will be released Reflection Exception LINQ Threading
Background image of page 2
C# 3.0 language features Implicitly typed variables Automatic properties Initializers Anonymous types Lambda expressions Extension methods
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
LINQ LINQ Operators
Background image of page 4
LINQ: Language INtegrated Query Allows native data querying in .NET LINQ defines a set of query operators Can be used to query, project, and filter data Data can be in arrays, enumerables, XML, and databases Querying handled by the LINQ engine Results returned as a collection of in-memory objects that can be iterated on
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
As an SQL-like query expression IEnumerable<Car> result = from car in cars where car.Year > 2003 select car; A method based style IEnumerable<Car> result = cars.Where(car => car.Year > 2003).Select(car => car);
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Query Operator Functionality from … in … Used to determine what is the collection of objects
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 03/15/2010.

Page1 / 15

lect9 - Yin Lou CS 2026, Spring 2010 Assignment 2 due today...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online