Microsoft Visual C♯ .Net language reference

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Author(s): Microsoft Press
Publisher: Microsoft Press
Year: 2002

Language: English
Pages: 287
City: Redmond, Wash

Hello, world......Page 13
Automatic memory management......Page 14
Types......Page 16
Predefined types......Page 18
Array types......Page 20
Type system unification......Page 22
Labeled statements and goto statements......Page 23
Expression statements......Page 24
The switch statement......Page 25
The for statement......Page 26
The checked and unchecked statements......Page 27
Structs......Page 28
Interfaces......Page 29
Delegates......Page 30
Enums......Page 31
Namespaces......Page 32
Properties......Page 33
Indexers......Page 34
Events......Page 35
Versioning......Page 36
Attributes......Page 38
Grammar notation......Page 41
Pre-processing declarations......Page 42
#if, #elif, #else, #endif......Page 44
Pre-processing identifiers......Page 45
Interaction with white space......Page 46
Comments......Page 47
Processing of Unicode character escape sequences......Page 48
Identifiers......Page 49
Boolean literals......Page 50
Integer literals......Page 51
Character literals......Page 52
String literals......Page 53
Operators and punctuators......Page 54
Declarations......Page 55
Struct members......Page 57
Member access......Page 58
Accessibility domains......Page 59
Accessibility constraints......Page 62
Signatures and overloading......Page 63
Scopes......Page 64
Hiding through nesting......Page 66
Hiding through inheritance......Page 67
Namespace and type names......Page 68
Fully qualified names......Page 69
Value types......Page 71
Default constructors......Page 72
Simple types......Page 73
Integral types......Page 75
Floating point types......Page 76
Reference types......Page 77
The string type......Page 78
Boxing conversions......Page 79
Unboxing conversions......Page 80
Instance variables in classes......Page 81
Output parameters......Page 82
Definite assignment......Page 83
Variable references......Page 86
Implicit numeric conversions......Page 87
Implicit constant expression conversions......Page 88
Explicit numeric conversions......Page 89
Explicit reference conversions......Page 90
Standard implicit conversions......Page 91
Evaluation of user-defined conversions......Page 92
User-defined implicit conversions......Page 93
User-defined explicit conversions......Page 94
Expression classifications......Page 95
Operator precedence and associativity......Page 96
Operator overloading......Page 97
Unary operator overload resolution......Page 98
Numeric promotions......Page 99
Member lookup......Page 100
Function members......Page 101
Argument lists......Page 103
Applicable function member......Page 105
Function member invocation......Page 106
Invocations on boxed instances......Page 107
Simple names......Page 108
Invariant meaning in blocks......Page 109
Member access......Page 110
Invocation expressions......Page 112
Delegate invocations......Page 113
Array access......Page 114
This access......Page 115
Postfix increment and decrement operators......Page 116
new operator......Page 117
Object creation expressions......Page 118
Array creation expressions......Page 119
Delegate creation expressions......Page 120
checked and unchecked operators......Page 122
Unary minus operator......Page 125
Prefix increment and decrement operators......Page 126
Cast expressions......Page 127
Multiplication operator......Page 128
Division operator......Page 129
Remainder operator......Page 130
Addition operator......Page 131
Subtraction operator......Page 132
Shift operators......Page 133
Integer comparison operators......Page 135
Floating-point comparison operators......Page 136
Reference type equality operators......Page 137
Logical operators......Page 139
Boolean logical operators......Page 140
User-defined conditional logical operators......Page 141
Conditional operator......Page 142
Simple assignment......Page 143
Compound assignment......Page 145
Constant expressions......Page 146
Boolean expressions......Page 147
End points and reachability......Page 149
The empty statement......Page 151
Local variable declarations......Page 152
Local constant declarations......Page 153
The if statement......Page 154
The switch statement......Page 155
The do statement......Page 159
The for statement......Page 160
The foreach statement......Page 161
Jump statements......Page 162
The continue statement......Page 163
The goto statement......Page 164
The throw statement......Page 165
The try statement......Page 166
The checked and unchecked statements......Page 168
The lock statement......Page 169
Namespace declarations......Page 171
Using directives......Page 172
Using alias directives......Page 173
Using namespace directives......Page 175
Type declarations......Page 177
Abstract classes......Page 179
Base classes......Page 180
Class members......Page 182
The new modifier......Page 183
Static and instance members......Page 184
Constants......Page 185
Fields......Page 187
Using static readonly fields for constants......Page 188
Field initialization......Page 189
Variable initializers......Page 190
Methods......Page 191
Method parameters......Page 192
Reference parameters......Page 193
Output parameters......Page 194
Params parameters......Page 195
Static and instance methods......Page 196
Virtual methods......Page 197
Override methods......Page 199
Abstract methods......Page 201
Method body......Page 202
Properties......Page 203
Accessors......Page 204
Virtual, override, and abstract accessors......Page 209
Events......Page 211
Indexers......Page 214
Operators......Page 217
Conversion operators......Page 218
Instance constructors......Page 220
Constructor execution......Page 221
Default constructors......Page 223
Destructors......Page 224
Static constructors......Page 225
Class loading and initialization......Page 227
Database integer type......Page 229
Database boolean type......Page 231
Array types......Page 235
Array covariance......Page 236
Array initializers......Page 237
Base interfaces......Page 239
Interface members......Page 240
Interface properties......Page 241
Interface member access......Page 242
Interface implementations......Page 244
Explicit interface member implementations......Page 245
Interface mapping......Page 247
Interface implementation inheritance......Page 250
Interface re-implementation......Page 251
Abstract classes and interfaces......Page 253
Enum declarations......Page 255
Enum members......Page 256
Enum values and operations......Page 258
Delegate modifiers......Page 259
Exceptions......Page 261
The AttributeUsage attribute......Page 263
Positional and named parameters......Page 264
Attribute specification......Page 265
Run-time retrieval of an attribute instance......Page 267
The AttributeUsage attribute......Page 268
The Conditional attribute......Page 269
The Obsolete attribute......Page 271
Versioning......Page 273
Pointer types......Page 275
The COMSourceInterfaces attribute......Page 277
The DllImport attribute......Page 278
The ImportedFromCOM attribute......Page 279
The IsCOMRegisterFunction attribute......Page 280
The Name attribute......Page 281
The ReturnsHResult attribute......Page 282
The TypeLibFunc attribute......Page 283
Supporting enums......Page 284
References......Page 287