Level One
Class
Class
Class
Class
Class
Class
Class
Class
Namespace
Assembly DLL / EXE
Namespace 1
Namespace 2
Namespace 3
Namespace 4
Namespace 5
Namespace n
Application
Assembly 1
Assembly 2
Assembly 3
Assembly 4
Assembly 5
Assembly n
int number;
int Number = 1;
const float Pi = 3.14f;
float number = 1.2f;
decimal number = 1.2m;
byte number = 255;
number = number + 1;
checked
{
byte number = 255;
number = number + 1;
}
byte a = 3;
int b = a;
byte a = 3; 00000011
int b = a; 00000000 00000000 00000000 00000011
int a = 21;
float b = a;
int a = 2;
byte b = a; // won't compile
int a = 2;
byte b = (byte)a;
float a = 2.5f;
int b = (int)f;
string i = "123";
int j = (int)i; //won't compile
string i = "123";
int j = Convert.ToInt32(i);
int k = int.Parse(i);
int a = 1;
int b = a++;
int a = 1;
int b = a++;
a = 2 et b = 1
int a = 1;
int b = ++a;
a = 2 et b = 2
// Here is a single line comment
int number = 1;
/*
Here is a single line
comment
*/
int number = 1;