Skip to content

Commit

Permalink
Create HelloWorld.cs
Browse files Browse the repository at this point in the history
test test test
  • Loading branch information
KrzysFR committed Jul 17, 2013
1 parent d3f4c8b commit a608087
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions HelloWorld.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using System;

namespace Hello
{

public static class World()
{

public static bool IsWorldTakenOver { get; private set; }

public static void TakeOverTheWorld()
{

throw new NotImplementedException();
}

public bool TryTakeOverTheWorld()
{
try
{
Console.WriteLine("Taking over the world...");
TakeOverTheWorld();
IsWorldTakenOver = true;
Console.WriteLine("World domination has been achieved !!!");

}
catch(Exception e)
{ // Narf ?
Console.Error.WriteLine("Narf? " + e.ToString());
IsWorldTakenOver = false;
}

}

public static void Main(string[] args)
{
while(!TryTakeOverTheWorld())
{
Thread.Sleep(TimeSpan.FromDays(1));
}
}


}
}

0 comments on commit a608087

Please sign in to comment.