Scrigroup - Documente si articole

Username / Parola inexistente      

Home Documente Upload Resurse Alte limbi doc  

CATEGORII DOCUMENTE




loading...



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


Statements

C sharp

+ Font mai mare | - Font mai mic








DOCUMENTE SIMILARE

Trimite pe Messenger
Standard conversions
Relational and type testing operators
End points and reachability
Boxing and unboxing: Boxing conversions
The empty statement
Structs
Static constructors
Assignment operators
Statements

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



loading...






Politica de confidentialitate

DISTRIBUIE DOCUMENTUL

Comentarii


Vizualizari: 392
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 2020 . All rights reserved

Distribuie URL

Adauga cod HTML in site