Scrigroup - Documente si articole

     

HomeDocumenteUploadResurseAlte limbi doc
AccessAdobe photoshopAlgoritmiAutocadBaze de dateCC sharp
CalculatoareCorel drawDot netExcelFox proFrontpageHardware
HtmlInternetJavaLinuxMatlabMs dosPascal
PhpPower pointRetele calculatoareSqlTutorialsWebdesignWindows
WordXml


Statements

C sharp



+ Font mai mare | - Font mai mic



Statements

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 Main()
}

Labeled statements and goto statements

static void Main(string[] args)

Local constant declarations

static void Main()

Local variable declarations

static void Main()

Expression statements

static int F(int a, int b)

static void Main()

if statements

static void Main(string[] args)

switch statements

static void Main(string[] args) args', n);
break;
}
}

while statements

static void Main(string[] args)
}

do statements

static void Main()
while (s != 'Exit');
}

for statements

static void Main(string[] args)

foreach statements

static void Main(string[] args)

break statements

static void Main(string[] args)
}

continue statements

static void Main(string[] args)
}

return statements

static int F(int a, int b)

static void Main()

throw statements and try statements

static int F(int a, int b)

static void Main()
catch(Exception e)
}

checked and unchecked statements

static void Main()

unchecked
}

lock statements

static void Main()
}

using statements

static void Main()
}



Politica de confidentialitate | Termeni si conditii de utilizare



DISTRIBUIE DOCUMENTUL

Comentarii


Vizualizari: 921
Importanta: rank

Comenteaza documentul:

Te rugam sa te autentifici sau sa iti faci cont pentru a putea comenta

Creaza cont nou

Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved