Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Namespace If Else
using Namespace; if(expression)
{
Data Types <statement 1>;
byte,sbyte,int,uint,short,ushort,long,ulong,float,double,decimal,bool,char,string, }
object else
{
Variable Declaration <statement 2>;
public | protected internal | protected | internal | private <type> As }
<variable_name>
C# version of IIF()
Type Declaration variable == ?true:false;
public | internal | private <variable><suffix>
For Loop
Suffixes for(statement)
f -float, l,L - long, No double suffix, U,u - unsigned {
<statement>;
Arrays }
<type>[] <name> = new <type>[ArraySize];
For Each Loop
Initialize Array foreach(<variable> In <object>)
<type>[] <name> = new <type>[ArraySize] {<value1>, <value2>, ... , <valueN>}; {
<statements>;
Change Size of Array [break];
<type>[] <name> = new <type>[ArraySize]; [continue];
Array.Resize<type>(ref <name>, <size>); }