forked from NanowarOfSteel/HelloWorld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHelloWorldMainLauncherClass.cs
53 lines (47 loc) · 1.1 KB
/
HelloWorldMainLauncherClass.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
namespace it.Nanowar.OfSteel.HelloWorld
{
public class HelloWorldMainLauncherClass
{
public HelloWorldMainLauncherClass(int foo)
{
this.foo = foo;
}
private int foo = 0;
public void SongRefrain()
{
for (int i = 0; i < foo; i++)
{
System.Console.WriteLine("Hello World!");
}
int pippo = 0;
while (pippo < foo)
{
System.Console.WriteLine("Hello World!");
pippo++;
}
}
public static void Main(string[] args)
{
System.Console.WriteLine("Hello World Programmer Start");
HelloWorldMainLauncherClass tizio = new HelloWorldMainLauncherClass(2);
tizio.SongRefrain();
System.Console.WriteLine("Program Finished!");
tizio.FalseMethod();
}
/*
If I may introduce a bug, the CLR will manage it for me
ensuring both security and portability
Then I'll write my code once, and run it on supported devices!
With Static and Strong Typing, will let my programs be type safe!
*/
public void FalseMethod()
{
bool metal = false;
if (metal == false)
{
string joeyDeCaio = null;
joeyDeCaio.Trim();
}
}
}
}