Prev | Current Page 6 | Next

Jon Skeet

"C# in Depth: What you need to master C# 2 and 3"

6 Summary 160
6 Implementing iterators the easy way 161
6.1 C# 1: the pain of handwritten iterators 162
6.2 C# 2: simple iterators with yield statements 165
Introducing iterator blocks and yield return 165 ?–  Visualizing
an iterator??™s workflow 167 ?–  Advanced iterator execution
flow 169 ?–  Quirks in the implementation 172
6.3 Real-life example: iterating over ranges 173
Iterating over the dates in a timetable 173 ?–  Scoping the Range
class 174 ?–  Implementation using iterator blocks 175
6.4 Pseudo-synchronous code with the Concurrency and
Coordination Runtime 178
6.5 Summary 181
7 Concluding C# 2: the final features 183
7.1 Partial types 184
Creating a type with multiple files 185 ?–  Uses of partial
types 186 ?–  Partial methods??”C# 3 only! 188
7.2 Static classes 190
7.3 Separate getter/setter property access 192
7.4 Namespace aliases 193
Qualifying namespace aliases 194 ?–  The global namespace
alias 195 ?–  Extern aliases 196
7.5 Pragma directives 197
Warning pragmas 197 ?–  Checksum pragmas 198
7.6 Fixed-size buffers in unsafe code 199
CONTENTS xiii
7.7 Exposing internal members to selected assemblies 201
Friend assemblies in the simple case 201 ?–  Why use
InternalsVisibleTo? 202 ?–  InternalsVisibleTo and signed
assemblies 203
7.8 Summary 204
PART 3 C# 3??”REVOLUTIONIZING HOW WE CODE .......205
8 Cutting fluff with a smart compiler 207
8.


Pages:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25