Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Csharp 3.0 Specification

Csharp 3.0 Specification

Ratings: (0)|Views: 20|Likes:
Published by Ruslan

More info:

Published by: Ruslan on Dec 18, 2008
Copyright:Attribution Non-commercial

Availability:

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

05/09/2014

pdf

text

original

 
Copyright
© ©© © 
Microsoft Corporation 2005. All Rights Reserved.
C
#
 
Version 3.0 Specification
September 2005
 
Copyright
© ©© © 
Microsoft Corporation 2005. All Rights Reserved.
Notice
© 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.
 
Table of Contents
Copyright
© ©© © 
Microsoft Corporation 2005. All Rights Reserved.
iii
 
Table of Contents
26. Overview of C# 3.0.....................................................................................................................................5
 
26.1 Implicitly typed local variables...............................................................................................................5
 
26.2 Extension methods.................................................................................................................................6
 
26.2.1 Declaring extension methods...........................................................................................................6
 
26.2.2 Importing extension methods...........................................................................................................7
 
26.2.3 Extension method invocations..........................................................................................................7
 
26.3 Lambda expressions...............................................................................................................................8
 
26.3.1 Lambda expression conversions.....................................................................................................10
 
26.3.2 Type inference...............................................................................................................................11
 
26.3.3 Overload resolution........................................................................................................................13
 
26.4 Object and collection initializers...........................................................................................................14
 
26.4.1 Object initializers...........................................................................................................................14
 
26.4.2 Collection initializers.....................................................................................................................16
 
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........................................................................................................................22
 
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
 

You're Reading a Free Preview

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