文档介绍:The C# Programming Language, Third Edition
Table Of Contents
1. The C# Programming Language, Third Edition 7
Table Of Contents 8
Copyright 12
Microsoft .NET Development Series 14
Foreword 16
Preface 17
About the Authors 18
About the Annotators 18
1. Introduction 19
. Hello, World 20
. Program Structure 22
. Types and Variables 24
. Expressions 28
. Statements 30
. Classes and Objects 36
. Structs 58
. Arrays 60
. Interfaces 63
. Enums 65
. Delegates 67
. Attributes 71
2. Lexical Structure 73
. Programs 73
. Grammars 74
. Lexical Analysis 76
. Tokens 79
. Preprocessing Directives 91
3. Basic Concepts 103
. Application Start-Up 104
. Application Termination 105
. Declarations 106
. Members 109
. Member Access 111
. Signatures and Overloading 120
. Scopes 121
. Namespace and Type Names 128
. Automatic Memory Management 132
. Execution Order 136
4. Types 137
. Value Types 138
. Reference Types 147
. Boxing and Unboxing 150
. Constructed Types 153
. Type Parameters 157
. Expression Tree Types 158
5. Variables 160
. Variable Categories 160
. Default Values 165
. Definite Assignment 165
. Variable References 178
. Atomicity of Variable References 178
6. Conversions 178
. Implicit Conversions 179
. Explicit Conversions 184
. Standard Conversions 191
. User-Defined Conversions 191
. Anonymous Function Conversions 196
. Method Group Conversions 203
7. Expressions 206
. Expression Classifications 206
. Operators 2