130 likes | 216 Views
Essential LINQ with C#. Mark Michaelis Chief Computer Nerd IDesign / Itron / IntelliTechture DTL313. Mark Michaelis. Chief Technical Architect, Author & Trainer mark@intelliTechture.com. Essential LINQ with C#. What made LINQ possible. C# 3.0 Language Summary. Query expressions.
E N D
Essential LINQ with C# Mark Michaelis Chief Computer Nerd IDesign/Itron/IntelliTechture DTL313
Mark Michaelis Chief Technical Architect,Author & Trainermark@intelliTechture.com
Essential LINQ with C# What made LINQ possible
C# 3.0 Language Summary Query expressions var contacts = from contact in contacts wherecontact.Phone.StartsWith("509") selectnew { contact.Name, contact.Phone }; Local variable type inference Lambda expressions var contacts = customers .Where(item => item.Phone.StartsWith("509")) .Select(contact => new { contact.Name, contact.Phone, Age=42}); Extension methods Object initializers Property initialization Anonymous types
demo Programming with LINQ
Mark Michaelis Chief Technical Architect,Author & Trainermark@intelliTechture.com
Track Resources • Visit the DPR TLC for a chance to win a copy of Visual Studio Team Suite. Daily drawing occurs every day in the TLC at 4:15pm. Stop by for a raffle ticket • http://www.microsoft.com/visualstudio • http://www.microsoft.com/visualstudio/en-us/products/teamsystem/default.mspx • Please visit us in the TLC blue area
Resources • www.microsoft.com/teched Sessions On-Demand & Community • www.microsoft.com/learning • Microsoft Certification & Training Resources • http://microsoft.com/technet • Resources for IT Professionals • http://microsoft.com/msdn Resources for Developers www.microsoft.com/learning Microsoft Certification and Training Resources
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.