
 |
|
Microsoft® Visual C#™ .NET Language Reference
|
|
|
Author
|
|
Microsoft Corporation
|
|
|
Pages
|
404
|
|
Disk
|
N/A
|
|
Level
|
Advanced
|
|
Published
|
03/06/2002
|
|
ISBN
|
9780735615540
|
|
Price
|
$39.99
To see this book's discounted price, select a reseller below.
|
|
|
|
|
 |
|
|
Index
Symbol
! Operator 182
!= Operator 196
% Operator 178
%= Operator 204
& Operator 179
&& Operator 190
&= Operator 205
() Operator 172
* Operator 176
*= Operator 202
+ Operator 174
++ Operator 188
+= Operator 200
- Operator 175
-- Operator 189
-= Operator 201
-> Operator 210
. Operator 173
/ Operator 177
/= Operator 203
< Operator 185
<< Operator 193
<<= Operator 208
<= Operator 198
= Operator 184
== Operator 195
> Operator 186
>> Operator 194
>>= Operator 209
>= Operator 199
?: Operator 187
[] Operator 171
^ Operator 181
^= Operator 207
| Operator 180
|| Operator 192
|= Operator 206
~ Operator 183
#define 243
#elif 242
#else 241
#endif 243
#endregion 247
#error 245
#if 240
#line 246
#region 247
#undef 244
#warning 244
/addmodule (Import Metadata) 360
/baseaddress (Specify Base Address of DLL) 361
/bugreport (Report a Problem) 361
/checked (Check Integer Arithmetic) 362
/codepage (Specify Code Page for Source Code Files) 363
/debug (Emit Debugging Information) 364
/define (Preprocessor Definition) 365
/doc (Process Documentation Comments) 366
/filealign (Specify Section Alignment) 367
/fullpaths (Specify Absolute Path in Compiler Output) 367
/help, /? (Compiler CommandLine Help) 368
/incremental (Enable Incremental Compilation) 368
/lib (Specify Assembly Reference Locations) 369
/linkresource (Link to .NET Framework Resource) 370
/main (Specify Location of Main Method) 371
/noconfig (Ignore csc.rsp) 372
/nologo (Suppress Banner Information) 373
/nostdlib (Do Not Import Standard Library) 373
/nowarn (Suppress Specified Warnings) 374
/optimize (Enable/Disable Optimizations) 374
/out (Set Output File Name) 375
/recurse (Find Source Files in Subdirectories) 376
/reference (Import Metadata) 377
/resource (Embed Resource File to Output) 378
/target (Specify Output File Format) 379
/target:exe (Create a Console Application) 380
/target:library (Create a Code Library) 381
/target:module (Create Module to Add to Assembly) 381
/target:winexe (Create a Windows Program) 382
/unsafe (Enable Unsafe Mode) 383
/utf8output (Display Compiler Messages with UTF-8) 383
/warn (Specify Warning Level) 384
/warnaserror (Treat Warnings as Errors) 385
/win32icon (Import an .ico File) 385
/win32res (Import a Win32 Resource File) 386
@ (Specify Response File) 359
<c> 336
<code> 336
<example> 337
<exception> 338
<include> 339
<list> 341
<para> 342
<param> 342
<paramref> 343
<permission> 344
<remarks> 345
<returns> 345
<see> 346
<seealso> 347
<summary> 347
<value> 348
A
abstract 31
Access Keywords 4
base 4
this 7
Access Modifiers 21
Accessibility Constraints 239
Accessibility Domain 23
Accessibility Domains 235
Accessibility Levels 22
Accessors 286
/addmodule (Import Metadata) 360
Arrays 248
Arrays Tutorial 256
Jagged Arrays 252
Multidimensional Arrays 250
Passing Arrays Using ref and out 254
Single-Dimensional Arrays 248
Arrays Tutorial 256
as 62
Attribute Targets 212
Attributes 211
Attributes Tutorial 222
AttributeUsage 218
Conditional 219
Introduction to Attributes 211
Attribute Targets 212
Creating Custom Attributes 215
Global Attributes 214
Retrieving Attribute Information 216
Using Attributes 211
Obsolete 221
Attributes Tutorial 222
AttributeUsage 218
B
base 4
/baseaddress (Specify Base Address of DLL) 361
bool 122
Boxing and Unboxing 146
Boxing Conversion 146
break 96
/bugreport (Report a Problem) 361
Building from the Command Line 353
Built-in Types Table 162
byte 124
C
<c> 336
char 125
checked 110
/checked (Check Integer Arithmetic) 362
Checked and Unchecked 109
class 149
Class Constructors 261
Class Members 233
<code> 336
/codepage (Specify Code Page for Source Code Files) 363
Command-Line Arguments 316
Comparison Between Properties and Indexers 276
Compiler Options 353
/addmodule (Import Metadata) 360
/baseaddress (Specify Base Address of DLL) 361
/bugreport (Report a Problem) 361
/checked (Check Integer Arithmetic) 362
/codepage (Specify Code Page for Source Code Files) 363
/debug (Emit Debugging Information) 364
/define (Preprocessor Definition) 365
/doc (Process Documentation Comments) 366
/filealign (Specify Section Alignment) 367
/fullpaths (Specify Absolute Path in Compiler Output) 367
/help, /? (Compiler CommandLine Help) 368
/incremental (Enable Incremental Compilation) 368
/lib (Specify Assembly Reference Locations) 369
/linkresource (Link to .NET Framework Resource) 370
/main (Specify Location of Main Method) 371
/noconfig (Ignore csc.rsp) 372
/nologo (Suppress Banner Information) 373
/nostdlib (Do Not Import Standard Library) 373
/nowarn (Suppress Specified Warnings) 374
/optimize (Enable/Disable Optimizations) 374
/out (Set Output File Name) 375
/recurse (Find Source Files in Subdirectories) 376
/reference (Import Metadata) 377
/resource (Embed Resource File to Output) 378
/target (Specify Output File Format) 379
/target:exe (Create a Console Application) 380
/target:library (Create a Code Library) 381
/target:module (Create Module to Add to Assembly) 381
/target:winexe (Create a Windows Program) 382
/unsafe (Enable Unsafe Mode) 383
Compiler Options
/utf8output (Display Compiler Messages with UTF8) 383
/warn (Specify Warning Level) 384
/warnaserror (Treat Warnings as Errors) 385
/win32icon (Import an .ico File) 385
/win32res (Import a Win32 Resource File) 386
@ (Specify Response File) 359
Building from the Command Line 353
Options Listed Alphabetically 357
Options Listed by Category 355
Compiler Options Listed Alphabetically 357
Compiler Options Listed by Category 355
Conditional 219
Conditional Methods Tutorial 318
const 34
Constructors and Destructors 261
Class Constructors 261
Instance Constructors 261
Private Constructors 266
Static Constructors 267
Destructors 270
Struct Constructors 268
continue 98
Conversion Keywords 9
explicit 9
implicit 11
operator 12
Creating Custom Attributes 215
D
/debug (Emit Debugging Information) 364
decimal 126
Declarations 229
Declared Accessibility 234
Default Values Table 164
#define 243
/define (Preprocessor Definition) 365
delegate 153
Delegates Tutorial 321
Destructors 270
do 83
/doc (Process Documentation Comments) 366
double 128
E
#elif 242
#else 241
#endif 243
#endregion 247
enum 130
#error 245
event 36
Events 328
<example> 337
<exception> 338
Exception Handling Statements 102
explicit 9
Explicit Numeric Conversions Table 167
extern 42
F
false 16, 74
false Literal 16, 74
false Operator 16, 74
/filealign (Specify Section Alignment) 367
fixed Statement 116
float 132
Floating-Point Types Table 164
for 84
foreach, in 86
Formatting Numeric Results Table 168
/fullpaths (Specify Absolute Path in Compiler Output) 367
G
General Rules for Scopes 304
General Structure of a C# Program 2
Global Attributes 214
goto 98
H
/help, /? (Compiler CommandLine Help) 368
Hiding Through Inheritance 307
Hiding Through Nesting 306
I
#if 240
if-else 77
implicit 11
Implicit Numeric Conversions Table 166
<include> 339
/incremental (Enable Incremental Compilation) 368
Indexer Declaration 273
Indexers 272
Comparison Between Properties and Indexers 276
Indexer Declaration 273
Indexers Tutorial 279
Interface Indexers 277
Indexers Tutorial 279
Instance Constructors 261
int 133
Integral Types Table 163
interface 155
Interface Indexers 277
Interface Properties 293
internal 27
Introduction to Attributes 211
is 63
Iteration Statements 82
J
Jagged Arrays 252
Jump Statements 96
K
Keywords 3
Access Keywords 4
base 4
this 7
Conversion Keywords 9
explicit 9
implicit 11
operator 12
Literal Keywords 14
false 16
null 14
true 15
Method Parameter Keywords 17
out 19
params 17
ref 18
Modifiers 20
abstract 31
Access Modifiers 21
const 34
event 36
extern 42
override 44
readonly 46
sealed 47
static 48
unsafe 50
virtual 51
volatile 54
Namespace Keywords 55
namespace 55
using 57
Operator Keywords 61
as 62
false 74
is 63
new 65
sizeof 70
stackalloc 75
true 73
typeof 71
Keywords
Statement Keywords 76
Checked and Unchecked 109
Exception Handling Statements 102
fixed Statement 116
Iteration Statements 82
Jump Statements 96
lock Statement 118
Selection Statements 76
Type Keywords 120
Boxing and Unboxing 146
Reference Types 149
Types Reference Tables 161
Value Types 121
L
/lib (Specify Assembly Reference Locations) 369
#line 246
/linkresource (Link to .NET Framework Resource) 370
<list> 341
Literal Keywords 14
false 16
false Literal 16
false Operator 16
null 14
true 15
true Literal 15
true Operator 15
lock Statement 118
long 134
M
/main (Specify Location of Main Method) 371
Main Method 315
Command-Line Arguments 316
Return Values 315
Member Access 233
Members 231
Accessibility Constraints 239
Accessibility Domains 235
Class Members 233
Declared Accessibility 234
Member Access 233
Namespace Members 232
Other Members 233
Protected Access for Instance Members 238
Struct Members 232
Method Parameter Keywords 17
out 19
params 17
ref 18
Modifiers 20
abstract 31
Access Modifiers 21
Accessibility Domain 23
Accessibility Levels 22
internal 27
private 28
protected 29
public 30
Restrictions on Using Accessibility Levels 24
const 34
event 36
extern 42
override 44
readonly 46
sealed 47
static 48
unsafe 50
virtual 51
volatile 54
Multidimensional Arrays 250
N
Name Hiding 306
namespace 55
Namespace Keywords 55
namespace 55
using 57
using Directive 57
using Statement 60
Namespace Members 232
new 65
new Modifier 67
new Operator 65
/noconfig (Ignore csc.rsp) 372
/nologo (Suppress Banner Information) 373
/nostdlib (Do Not Import Standard Library) 373
/nowarn (Suppress Specified Warnings) 374
null 14
O
object 159
Obsolete 221
operator 12
Operator Keywords 61
as 62
false 74
false Literal 74
false Operator 74
is 63
new 65
new Modifier 67
new Operator 65
Operator Keywords
sizeof 70
stackalloc 75
true 73
true Literal 73
true Operator 73
typeof 71
Operators 169
! Operator 182
!= Operator 196
% Operator 178
%= Operator 204
& Operator 179
&& Operator 190
&= Operator 205
() Operator 172
* Operator 176
*= Operator 202
+ Operator 174
++ Operator 188
+= Operator 200
- Operator 175
-- Operator 189
-= Operator 201
-> Operator 210
. Operator 173
/ Operator 177
/= Operator 203
< Operator 185
<< Operator 193
<<= Operator 208
<= Operator 198
= Operator 184
== Operator 195
> Operator 186
>> Operator 194
>>= Operator 209
>= Operator 199
?: Operator 187
[] Operator 171
^ Operator 181
^= Operator 207
| Operator 180
|| Operator 192
|= Operator 206
~ Operator 183
Overloadable Operators 170
/optimize (Enable/Disable Optimizations) 374
Other Members 233
out 19
/out (Set Output File Name) 375
Overloadable Operators 170
override 44
P
<para> 342
<param> 342
<paramref> 343
params 17
Passing Arrays Using ref and out 254
Passing Parameters 309
<permission> 344
Preprocessor Directives 240
#define 243
#elif 242
#else 241
#endif 243
#endregion 247
#error 245
#if 240
#line 246
#region 247
#undef 244
#warning 244
private 28
Private Constructors 266
Processing the XML File 349
Programming in C# 1
Properties 283
Accessors 286
Interface Properties 293
Properties Tutorial 296
Property Declaration 284
Properties Tutorial 296
Property Declaration 284
protected 29
Protected Access for Instance Members 238
public 30
R
readonly 46
/recurse (Find Source Files in Subdirectories) 376
ref 18
/reference (Import Metadata) 377
Reference Types 149
#region 247
<remarks> 345
/resource (Embed Resource File to Output) 378
Restrictions on Using Accessibility Levels 24
Retrieving Attribute Information 216
return 101
Return Values 315
<returns> 345
S
sbyte 136
Scopes 303
General Rules for Scopes 304
Hiding Through Inheritance 307
Hiding Through Nesting 306
Name Hiding 306
sealed 47
<see> 346
<seealso> 347
Selection Statements 76
short 137
Signatures and Overloading 302
Single-Dimensional Arrays 248
sizeof 70
stackalloc 75
Statement Keywords 76
Checked and Unchecked 109
checked 110
unchecked 113
Exception Handling Statements 102
throw 102
try-catch 103
try-catch-finally 108
try-finally 107
fixed Statement 116
Iteration Statements 82
do 83
for 84
foreach, in 86
while 95
Jump Statements 96
break 96
continue 98
goto 98
return 101
lock Statement 118
Selection Statements 76
if-else 77
switch 80
static 48
Static Constructors 267
string 160
struct 138
Struct Constructors 268
Struct Members 232
<summary> 347
switch 80
T
Tags for Documentation Comments 335
/target (Specify Output File Format) 379
/target:exe (Create a Console Application) 380
/target:library (Create a Code Library) 381
/target:module (Create Module to Add to Assembly) 381
/target:winexe (Create a Windows Program) 382
this 7
throw 102
true 15, 73
true Literal 15, 73
true Operator 15, 73
try-catch 103
try-catch-finally 108
try-finally 107
Type Keywords 120
Boxing and Unboxing 146
Boxing Conversion 146
Unboxing Conversion 147
Reference Types 149
class 149
delegate 153
interface 155
object 159
string 160
void 161
Types Reference Tables 161
Built-in Types Table 162
Default Values Table 164
Explicit Numeric Conversions Table 167
Floating-Point Types Table 164
Formatting Numeric Results Table 168
Implicit Numeric Conversions Table 166
Integral Types Table 163
Value Types Table 165
Value Types 121
bool 122
byte 124
char 125
decimal 126
double 128
enum 130
float 132
int 133
long 134
sbyte 136
short 137
struct 138
uint 142
ulong 143
ushort 144
typeof 71
Types Reference Tables 161
U
uint 142
ulong 143
Unboxing Conversion 147
unchecked 113
#undef 244
unsafe 50
/unsafe (Enable Unsafe Mode) 383
ushort 144
using 57
Using Attributes 211
using Directive 57
using Statement 60
/utf8output (Display Compiler Messages with UTF-8) 383
V
<value> 348
Value Types Table 165
Value Types 121
virtual 51
void 161
volatile 54
W
/warn (Specify Warning Level) 384
/warnaserror (Treat Warnings as Errors) 385
#warning 244
while 95
/win32icon (Import an .ico File) 385
/win32res (Import a Win32 Resource File) 386
X
XML Documentation 335
Processing the XML File 349
Tags for Documentation Comments 335
<c> 336
<code> 336
<example> 337
<exception> 338
<include> 339
<list> 341
<para> 342
<param> 342
<paramref> 343
<permission> 344
<remarks> 345
<returns> 345
<see> 346
<seealso> 347
<summary> 347
<value> 348
Last Updated: February 19, 2002
|