|
bool
|
Boolean Value
|
|
int
|
Integer (32 Bit)
|
|
string
|
String Value
|
|
float
|
Integer with Decimal (32 Bit)
|
|
double
|
Integer with Decimal (64 Bit)
|
|
Convert.ToInt32
|
|
Convert.ToDouble
|
|
Convert.ToString
|
|
int[] array = new int[] {1, 2, 3}
|
|
int[] array = {1, 2, 3}
|
|
var array = new int[] {1, 2, 3}
|
|
int[] array = new int[3]
|
|
if-else
|
if (true) {...}
else if (true) {...} else {...} |
|
switch
|
switch (var) {
case 1: break; default: break; } |
|
for
|
for (int i =1; i < 5; i++) {...}
|
|
foreach-in
|
foreach (int item in array) {...}
|
|
while
|
while (true) {...}
|
|
do... while
|
do {...} while (true);
|
|
try-catch-finally
|
try {...}
catch (Exception e) {...} catch {...} finally {...} |
|
and
|
&&
|
|
or
|
||
|
|
not
|
!
|
|
+
|
Add Numbers
|
|
-
|
Subtract Numbers
|
|
*
|
Multiply Numbers
|
|
/
|
Divide Numbers
|
|
%
|
Compute remainder of division of numbers
|
|
++
|
Increase integer value by 1
|
|
--
|
Decreases integer value by 1
|
|
<
|
Less than
|
|
>
|
Greater than
|
|
<=
|
Less than or equal to
|
|
=>
|
Greater than or equal to
|
|
==
|
Equal to
|
|
!=
|
Not Equal to
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.