C# in Depth what you need to master c2 and 3 phần 1 pot

43 634 0

Daniel Gửi tin nhắn Báo tài liệu vi phạm

Tải lên: 111,441 tài liệu

  • Loading ...
1/43 trang

Thông tin tài liệu

Ngày đăng: 12/08/2014, 12:20

[...]... 33 3 ■ ■ ■ ■ 12 .3 LINQ to DataSet 33 4 Working with untyped datasets 33 4 datasets 33 5 12 .4 LINQ to XML ■ Working with typed 33 8 XElement and XAttribute 33 8 Converting sample defect data into XML 34 0 Queries in LINQ to XML 34 1 LINQ to XML summary 34 3 ■ ■ 12 .5 LINQ beyond NET 3. 5 Third-party LINQ 34 4 12 .6 13 ■ Summary 34 4 ■ Future Microsoft LINQ technologies 34 8 35 0 Elegant code in the new era 35 2 13 . 1. .. identifiers 296 11 .5 Joins 295 297 Inner joins using join clauses 297 Group joins with join … into clauses 30 1 Cross joins using multiple from clauses 30 3 ■ ■ 11 .6 Groupings and continuations 30 7 Grouping with the group … by clause 30 7 continuations 31 0 11 .7 12 Summary ■ Query 31 3 LINQ beyond collections 31 4 12 .1 LINQ to SQL 31 5 Creating the defect database and entities 31 5 Populating the database... templates 10 8 Comparison with Java generics 11 0 ■ ■ 3. 7 4 Summary 11 1 Saying nothing with nullable types 11 2 4 .1 What do you do when you just don’t have a value? Why value type variables can’t be null 1 13 for representing null values in C# 1 114 4.2 ■ Patterns System.Nullable and System.Nullable 11 5 Introducing Nullable 11 6 Boxing and unboxing 11 8 Equality of Nullable instances 11 9 Support... ideas and guidelines 270 “Extending the world” and making interfaces richer 270 Fluent interfaces 2 71 Using extension methods sensibly 272 ■ 10 .5 11 Summary 274 Query expressions and LINQ to Objects 275 11 .1 Introducing LINQ 276 What s in a name? 276 Fundamental concepts in LINQ 277 Defining the sample data model 282 ■ ■ 11 .2 Simple beginnings: selecting elements 2 83 Starting with a source and ending... Nullable class 11 9 ■ ■ ■ 4 .3 C# 2’s syntactic sugar for nullable types 12 0 The ? modifier 12 1 Assigning and comparing with null 12 2 Nullable conversions and operators 12 4 Nullable logic 12 7 The null coalescing operator 12 8 ■ ■ ■ 4.4 Novel uses of nullable types 13 1 Trying an operation without using output parameters 13 1 Painless comparisons with the null coalescing operator 13 3 Summary 13 6 ■ ■ 5 Fast-tracked... variables 15 1 Examining the behavior of captured variables 15 2 What s the point of captured variables? 1 53 The extended lifetime of captured variables 15 4 Local variable instantiations 15 5 Mixtures of shared and distinct variables 15 7 Captured variable guidelines and summary 15 8 ■ ■ ■ ■ 5.6 6 Summary 16 0 Implementing iterators the easy way 16 1 6 .1 6.2 C# 1: the pain of handwritten iterators 16 2 C# 2: simple... sample data 31 8 Accessing the database with query expressions 31 9 Updating the database 32 4 LINQ to SQL summary 32 5 ■ ■ ■ 12 .2 ■ Translations using IQueryable and IQueryProvider 32 6 Introducing IQueryable and related interfaces 32 6 Faking it: interface implementations to log calls 32 8 Gluing expressions together: the Queryable extension methods 33 0 The fake query provider in action 33 2 Wrapping up IQueryable... delegates 13 7 5 .1 5.2 5 .3 Saying goodbye to awkward delegate syntax Method group conversions 14 0 Covariance and contravariance 14 1 13 8 1 13 xii CONTENTS 5.4 Inline delegate actions with anonymous methods 14 4 Starting simply: acting on a parameter 14 5 Returning values from anonymous methods 14 7 Ignoring delegate parameters 14 9 ■ ■ 5.5 Capturing variables in anonymous methods 15 0 Defining closures and different... CONTENTS 1 .3 The NET platform 24 Distinguishing between language, runtime, and libraries 25 Untangling version number chaos 26 ■ 1. 4 Fully functional code in snippet form Snippets and their expansions 1. 5 2 Summary 28 ■ 28 Introducing Snippy 30 31 Core foundations: building on C# 1 32 2 .1 Delegates 33 A recipe for simple delegates 34 Combining and removing delegates 38 A brief diversion into events... 35 2 13 . 1 The changing nature of language preferences A more functional emphasis 35 3 explicit, or a mixture? 35 4 ■ 35 3 Static, dynamic, implicit, xvi CONTENTS 13 . 2 13 . 3 13 . 4 13 . 5 appendix Delegation as the new inheritance 35 5 Readability of results over implementation Life in a parallel universe 35 7 Farewell 35 8 LINQ standard query operators index 37 1 35 9 35 6 foreword There are two kinds of pianists . 33 2 ■ Wrapping up IQueryable 33 3 12 .3 LINQ to DataSet 33 4 Working with untyped datasets 33 4 ■ Working with typed datasets 33 5 12 .4 LINQ to XML 33 8 XElement and XAttribute 33 8 ■ Converting sample. group … by clause 30 7 ■ Query continuations 31 0 11 .7 Summary 31 3 12 LINQ beyond collections 31 4 12 .1 LINQ to SQL 31 5 Creating the defect database and entities 31 5 ■ Populating the database. data into XML 34 0 ■ Queries in LINQ to XML 34 1 ■ LINQ to XML summary 34 3 12 .5 LINQ beyond .NET 3. 5 34 4 Third-party LINQ 34 4 ■ Future Microsoft LINQ technologies 34 8 12 .6 Summary 35 0 13 Elegant
- Xem thêm -

Xem thêm: C# in Depth what you need to master c2 and 3 phần 1 pot, C# in Depth what you need to master c2 and 3 phần 1 pot, C# in Depth what you need to master c2 and 3 phần 1 pot, 1 Evolution in action: examples of code change

Gợi ý tài liệu liên quan cho bạn