CATEGORII DOCUMENTE |
C# borrows most of its statements directly from C and C++, though there are some noteworthy additions and modifications. The table below lists the kinds of statements that can be used, and provides an example for each.
Statement |
Example |
Statement lists and block statements |
static
void |
Labeled statements and goto statements |
static
void |
Local constant declarations |
static
void |
Local variable declarations |
static
void |
Expression statements |
static int F(int a, int b) static
void |
if statements |
static
void |
switch statements |
static
void |
while statements |
static
void |
do statements |
static
void |
for statements |
static
void |
foreach statements |
static
void |
break statements |
static
void |
continue statements |
static
void |
return statements |
static int F(int a, int b) static
void |
throw statements and try statements |
static int F(int a, int b) static
void |
checked and unchecked statements |
static
void |
lock statements |
static
void |
using statements |
static
void |
Politica de confidentialitate | Termeni si conditii de utilizare |
Vizualizari: 934
Importanta:
Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved