Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
2Activity
×
0 of .
Results for:
No results containing your search query
P. 1
Csharp 3

Csharp 3

Ratings: (0)|Views: 289|Likes:
Published by api-3743891

More info:

Published by: api-3743891 on Oct 15, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, DOC, TXT or read online from Scribd
See More
See less

03/18/2014

pdf

text

original

C#
Version 3.0 Specification
September 2005
Copyright\u00a9 Microsoft Corporation 2005. All Rights Reserved.
Notice
\u00a9 2005 Microsoft Corporation. All rights reserved.
Microsoft, Windows, Visual Basic, Visual C#, and Visual C++ are either registered trademarks or trademarks of Microsoft
Corporation in the U.S.A. and/or other countries/regions.
Other product and company names mentioned herein may be the trademarks of their respective owners.
Copyright\u00a9 Microsoft Corporation 2005. All Rights Reserved.
Table of Contents
Table of Contents
26. Overview of C# 3.0.......................................................................................................................... ..............4
26.1 Implicitly typed local variables................................................................................................................. .4

26.2 Extension methods..................................................................................................................................... 5 26.2.1 Declaring extension methods........................................................................................... ...................6 26.2.2 Importing extension methods.................................................................................................. ............6 26.2.3 Extension method invocations.................................................................................. ..........................6

26.3 Lambda expressions........................................................................................................... .......................8 26.3.1 Lambda expression conversions........................................................................................................ ..9 26.3.2 Type inference.............................................................................................................................. .....10 26.3.3 Overload resolution..................................................................................................................... ......12

26.4 Object and collection initializers.................................................................................... .........................13
26.4.1 Object initializers................................................................................................................. .............13

26.4.2 Collection initializers........................................................................................................ ................15 26.5 Anonymous types.............................................................................................................. ......................17 26.6 Implicitly typed arrays...................................................................................................................... .......18 26.7 Query expressions......................................................................................................... ..........................19

26.7.1 Query expression translation................................................................................................... ..........20 26.7.1.1 where clauses............................................................................................................................. .21 26.7.1.2 select clauses........................................................................................................... ...................21 26.7.1.3 group clauses................................................................................................................. .............21 26.7.1.4 orderby clauses............................................................................................................... ............21 26.7.1.5 Multiple generators................................................................................................................... ..22 26.7.1.6 into clauses.................................................................................................................. ...............23

26.7.2 The query expression pattern.................................................................................... ........................23
26.7.3 Formal translation rules........................................................................................ ............................24
26.8 Expression trees................................................................................................................................. ......26
Copyright\u00a9 Microsoft Corporation 2005. All Rights Reserved.
iii

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->